2014-01-06 13:20:22 +00:00
|
|
|
{ stdenv, fetch-bower, git }: name: version: target: outputHash: stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
2015-07-16 15:35:31 +01:00
|
|
|
buildCommand = ''
|
|
|
|
out=$PWD/out fetch-bower ${name} ${version} ${target}
|
|
|
|
cp -R out $out
|
|
|
|
'';
|
2014-01-06 13:20:22 +00:00
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
inherit outputHash;
|
2015-07-16 15:35:31 +01:00
|
|
|
buildInputs = [git fetch-bower];
|
2014-01-06 13:20:22 +00:00
|
|
|
}
|