Merge pull request #27775 from rvl/bower2nix-issue-13
fetchbower: handle packages with slashes in their name
This commit is contained in:
commit
7aedfc1df8
|
@ -7,8 +7,10 @@ let
|
||||||
ver = if builtins.length components == 1 then version else hash;
|
ver = if builtins.length components == 1 then version else hash;
|
||||||
in ver;
|
in ver;
|
||||||
|
|
||||||
|
bowerName = name: lib.replaceStrings ["/"] ["-"] name;
|
||||||
|
|
||||||
fetchbower = name: version: target: outputHash: stdenv.mkDerivation {
|
fetchbower = name: version: target: outputHash: stdenv.mkDerivation {
|
||||||
name = "${name}-${bowerVersion version}";
|
name = "${bowerName name}-${bowerVersion version}";
|
||||||
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
fetch-bower --quiet --out=$PWD/out "${name}" "${target}" "${version}"
|
fetch-bower --quiet --out=$PWD/out "${name}" "${target}" "${version}"
|
||||||
|
|
Loading…
Reference in a new issue