-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
31 lines (28 loc) · 954 Bytes
/
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 = "A flake for installing the dependencies of baby l4";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
# inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-20.09;
inputs.gf-nix.url = github:anka-213/cclaw-nix-stuff/nix-flakes;
inputs.gf-nix.inputs.nixpkgs.follows = "nixpkgs";
outputs = { self, nixpkgs, gf-nix }: {
devShell = builtins.mapAttrs
(arch: pkgs:
let
gf-pkgs = gf-nix.packages.${arch};
# inherit (gf-pkgs) gf-wordnet;
in
pkgs.mkShell {
nativeBuildInputs = [
gf-pkgs.gf-with-rgl
pkgs.haskell.compiler.ghc884
# pkgs.graphviz
# pkgs.emacs
];
shellHook = ''
export NIX_PATH=nixpkgs=${nixpkgs};
export GF_LIB_PATH=$GF_LIB_PATH''${GF_LIB_PATH:+':'}${gf-pkgs.gf-rgl}/rgl:${gf-pkgs.gf-wordnet}
'';
})
nixpkgs.legacyPackages;
};
}