-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathflake.nix
36 lines (35 loc) · 1.18 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
32
33
34
35
36
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system}.extend (final: prev: {
wlroots = prev.wlroots.overrideAttrs (old: rec {
version = "0.17.1";
src = pkgs.fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "wlroots";
repo = "wlroots";
rev = version;
hash = "sha256-Z0gWM7AQqJOSr2maUtjdgk/MF6pyeyFMMTaivgt+RMI=";
};
patches = []; # Commit fe53ec693789afb44c899cad8c2df70c8f9f9023 is in 0.17.1.
});
});
haskellPackages = pkgs.haskellPackages.extend (final: prev: {
wlhs-bindings = prev.callCabal2nix "wlhs-bindings" ./. { };
});
in {
devShells.default = haskellPackages.shellFor {
packages = p: [ p.wlhs-bindings ];
buildInputs = with haskellPackages; [
cabal-install
haskell-language-server
];
};
}
);
}