git.iko.soy/typeable/nixpkgs
on master help sign in
Make fetchBower a bit more like a normal mkDerivation, which is easier to test.

Also, in some cases, the result of fetchBower is different depending on the value of $out. For now, it seems that it works best if using a local output directory before copying to $out. (cherry picked from commit aa4c6b027163abe0891f9ad438899f9679298a64)

commitb7155460719ba2c8b0b276fad3fdd22441eac9f9 authorRob Vermaas <rob.vermaas@gmail.com> dateThu 16 Jul 2015, 14:35 (11 years ago) parent166aed1
1 file changed+5−3
pkgs/build-support/fetchbower/default.nix+5−3
pkgs/build-support/fetchbower/default.nix+5−3
@@ -1,9 +1,11 @@
11{ stdenv, fetch-bower, git }: name: version: target: outputHash: stdenv.mkDerivation {
22 name = "${name}-${version}";
3− realBuilder = "${fetch-bower}/bin/fetch-bower";
4− args = [ name version target ];
3+ buildCommand = ''
4+ out=$PWD/out fetch-bower ${name} ${version} ${target}
5+ cp -R out $out
6+ '';
57 outputHashMode = "recursive";
68 outputHashAlgo = "sha256";
79 inherit outputHash;
8− PATH = "${git}/bin";
10+ buildInputs = [git fetch-bower];
911}