Make build compatible with newer nixpkgs
Nodejs 10 was marked as insecure which leads to the build failing. This overrides the nodejs 10 derivation to not be marked as insecure. It does not pose a high security risk due to it only being used in the (sandboxed) build process with pinned inputs.
This commit is contained in:
parent
2dc260f73f
commit
99649575d1
|
@ -10,7 +10,13 @@
|
|||
overlay = final: prev: {
|
||||
AriaNg =
|
||||
let
|
||||
nodeDependencies = (prev.callPackage ./build-dependencies.nix { pkgs = prev; }).shell.nodeDependencies;
|
||||
# mark nodejs 10 as secure, YOLO
|
||||
# it is somewhat acceptable, because it only gets used for the build
|
||||
# upstream recommends using node 8, so using node 10 is the more secure option
|
||||
# https://github.com/mayswind/AriaNg/issues/606#issuecomment-842461874
|
||||
nodejs = prev.nodejs-10_x.overrideAttrs (o: o // { meta = o.meta // { insecure = false; }; });
|
||||
|
||||
nodeDependencies = (prev.callPackage ./build-dependencies.nix { pkgs = prev; inherit nodejs; }).shell.nodeDependencies;
|
||||
in
|
||||
prev.stdenvNoCC.mkDerivation {
|
||||
pname = "AriaNg";
|
||||
|
|
Reference in a new issue