summary refs log tree commit diff
path: root/pkgs/build-support/fetchbower/default.nix
blob: 7c6b1a8a0983a64bbcd38e5d4c5935576f91bf93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ stdenv, fetch-bower, git }: name: version: target: outputHash: stdenv.mkDerivation {
  name = "${name}-${version}";
  buildCommand = ''
    out=$PWD/out fetch-bower ${name} ${version} ${target}
    cp -R out $out
  '';
  outputHashMode = "recursive";
  outputHashAlgo = "sha256";
  inherit outputHash;
  buildInputs = [git fetch-bower];
}