-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
31 lines (30 loc) · 1 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "Scheme interpreter based on R5RS denotational semantics";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
inclusive.url = "github:input-output-hk/nix-inclusive";
};
outputs = { self, nixpkgs, utils, inclusive }:
utils.lib.eachDefaultSystem (system:
with import nixpkgs { inherit system; }; {
defaultPackage = haskellPackages.callPackage ({ mkDerivation, base, containers, lib, mtl, parsec, transformers }:
mkDerivation {
pname = "r5rs-denot";
version = "0.1.0.0";
src = inclusive.lib.inclusive ./. [
./src
./r5rs-denot.cabal
./Setup.hs
./LICENSE
];
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base containers mtl parsec transformers
];
license = lib.licenses.mit;
}) {};
}
);
}