Add fetchbower function to go along with bower2nix

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy
2014-01-06 08:20:22 -05:00
parent 7f8b47b60d
commit e6dae5d7f4
4 changed files with 125 additions and 63 deletions
@@ -0,0 +1,9 @@
{ stdenv, fetch-bower, git }: name: version: target: outputHash: stdenv.mkDerivation {
name = "${name}-${version}";
realBuilder = "${fetch-bower}/bin/fetch-bower";
args = [ name version target ];
outputHashMode = "recursive";
outputHashAlgo = "sha256";
inherit outputHash;
PATH = "${git}/bin";
}