summaryrefslogtreecommitdiff
path: root/Biz/Bild
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-11-20 18:27:29 -0500
committerBen Sima <ben@bsima.me>2020-11-20 18:27:29 -0500
commit8e256e46bca4b3f04c6379a8ff98d3c5cb7a3683 (patch)
tree08f29a205d1a1970887e5550ec1d7f6a219de091 /Biz/Bild
parent04859e901c40ba6c23c3cbace14d5339ce89db38 (diff)
fix bug in overrideSource
Diffstat (limited to 'Biz/Bild')
-rw-r--r--Biz/Bild/Overlay.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/Biz/Bild/Overlay.nix b/Biz/Bild/Overlay.nix
index 2fecae1..dc52eab 100644
--- a/Biz/Bild/Overlay.nix
+++ b/Biz/Bild/Overlay.nix
@@ -17,10 +17,10 @@ in rec
# Modifies a derivation with our source and version, keeping old build
# rules. This will fail if build steps have changed, or if no build
# rules are available upstream..
- overrideSource = name: pkgs.${name}.overrideAttrs (old: old // rec {
- name = "${name}-${version}";
- version = pkgs.sources.${name}.version or pkgs.sources.${name}.rev;
- src = pkgs.sources.${name};
+ overrideSource = depName: pkgs.${depName}.overrideAttrs (old: old // rec {
+ name = "${depName}-${version}";
+ version = pkgs.sources.${depName}.version or pkgs.sources.${depName}.rev;
+ src = pkgs.sources.${depName};
});
haskell = pkgs.haskell // {