-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdefault.nix
More file actions
26 lines (23 loc) · 755 Bytes
/
default.nix
File metadata and controls
26 lines (23 loc) · 755 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
let
sources = import ./nix/sources.nix;
overlays = import ./nix/overlays.nix;
nixpkgs = import sources.nixpkgs { inherit overlays; };
nix-filter = import sources.nix-filter;
in rec
{
# Build with nix-build -A <attr>
binaries = nixpkgs.haskellPackages.language-glsl;
# binaries + haddock are also available as binaries.all.
haddock = nixpkgs.haskellPackages.language-glsl.doc;
# A shell to try out our binaries
# Run with nix-shell default.nix -A shell
shell = nixpkgs.mkShell {
buildInputs = [
binaries
];
shellHook = ''
# TODO Uncomment when the program uses optparse-applicative.
# source <(glsl-pprint --bash-completion-script `which glsl-pprint`)
'';
};
}