Skip to content

Commit b6aad33

Browse files
committed
override only the source, keep original derivation
1 parent 00fa4c7 commit b6aad33

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

flake.nix

+8-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
flake-utils.lib.eachDefaultSystem (system:
99
let
1010
pkgs = import nixpkgs {inherit system;};
11+
agdasrc = pkgs.fetchFromGitHub {
12+
owner = "agda";
13+
repo = "agda";
14+
rev = "5c29109f8212ef61b0091d62ef9c8bfdfa16cf36";
15+
hash = "sha256-qiV/tk+/b3xYPJcWVVd7x9jrQjBzl1TXHPNEQbKV2rA=";
16+
};
1117
hpkgs = with pkgs; haskellPackages.override {
12-
overrides = haskell.lib.packageSourceOverrides {
13-
Agda = fetchFromGitHub {
14-
owner = "agda";
15-
repo = "agda";
16-
rev = "5c29109f8212ef61b0091d62ef9c8bfdfa16cf36";
17-
hash = "sha256-qiV/tk+/b3xYPJcWVVd7x9jrQjBzl1TXHPNEQbKV2rA=";
18-
};
18+
overrides = _: old: rec {
19+
Agda = haskell.lib.overrideSrc old.Agda {src = agdasrc;};
1920
};
2021
};
2122
agda2lambox = hpkgs.callCabal2nix "agda2lambox" ./. {};

0 commit comments

Comments
 (0)