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