-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpackage.nix
More file actions
36 lines (35 loc) · 768 Bytes
/
package.nix
File metadata and controls
36 lines (35 loc) · 768 Bytes
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
32
33
34
35
36
let
pkgs = import ../nix {};
specJson = pkgs.writeTextFile
{ name = "spec-json";
text = builtins.toJSON { inherit (pkgs.sources.nixpkgs) sha256 url; } ;
destination = "/spec.json";
};
lib64 = pkgs.runCommand "lib64" {}
''
tar -czf lib.tar.gz -C ${pkgs.lib.cleanSource ../snack-lib} .
mkdir -p $out
base64 lib.tar.gz > $out/lib.tar.gz.b64
'';
in
{ main = "Snack";
src = ./.;
dependencies =
[
"aeson"
"file-embed"
"interpolate"
"optparse-applicative"
"shelly"
"text"
"unix"
"unliftio"
];
ghcOpts = [ "-Werror" "-Wall" ] ;
extra-directories =
{ Snack =
[ specJson
lib64
];
};
}