Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 51 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ pkgs }:
{ buildInputs ? [ ], generated, ...}@attrs:
let # Fetches the bower packages. `generated` should be the result of a # `bower2nix` command. bowerPackages = import generated { inherit (pkgs) buildEnv fetchbower; };
inpkgs.stdenv.mkDerivation ( attrs // { name = "bower_components-" + attrs.name;
inherit bowerPackages;
builder = builtins.toFile "builder.sh" '' # The project's bower.json is required cp $src/bower.json .
# Dereference symlinks -- bower doesn't like them cp --recursive --reflink=auto \ --dereference --no-preserve=mode \ $bowerPackages bc
# Bower install in offline mode -- links together the fetched # bower packages. HOME=$PWD bower \ --config.storage.packages=bc/packages \ --config.storage.registry=bc/registry \ --offline install
# Sets up a single bower_components directory within # the output derivation. mkdir -p $out mv bower_components $out '';
buildInputs = buildInputs ++ [ pkgs.git pkgs.nodePackages.bower ]; })