-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
32 lines (28 loc) · 996 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
32
{
description = "Simple flake with flake-utils";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; };
hello = pkgs.hello;
helloApp = flake-utils.lib.mkApp { drv = hello; };
in {
devShell = pkgs.mkShell {
LD_LIBRARY_PATH = "${pkgs.zlib}/lib;${pkgs.leveldb}/lib;${pkgs.fuse3}/lib;";
PKG_CONFIG_PATH = "${pkgs.fuse3}/lib/pkgconfig";
inputsFrom = [ ];
buildInputs = [ pkgs.zlib pkgs.leveldb pkgs.fuse3 ];
nativeBuildInputs = [
pkgs.pkg-config
pkgs.haskell.compiler.ghc92
pkgs.haskell.packages.ghc92.cabal-install
pkgs.haskell.packages.ghc92.haskell-language-server
pkgs.llvm_12
];
};
});
}