mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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;
|
||||
in ver;
|
||||
|
||||
bowerName = name: lib.replaceStrings ["/"] ["-"] name;
|
||||
|
||||
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";
|
||||
buildCommand = ''
|
||||
fetch-bower --quiet --out=$PWD/out "${name}" "${target}" "${version}"
|
||||
|
Loading…
Reference in New Issue
Block a user