Merge pull request #5921 from matejc/fixfixnixui
nixui: do not use pkgs.path
This commit is contained in:
commit
ac9c450a62
@ -2,7 +2,7 @@
|
|||||||
, pkgs ? import <nixpkgs> {}
|
, pkgs ? import <nixpkgs> {}
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
nodePackages = import "${pkgs.path}/pkgs/top-level/node-packages.nix" {
|
nodePackages = import ../../../top-level/node-packages.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit (pkgs) stdenv nodejs fetchurl fetchgit;
|
inherit (pkgs) stdenv nodejs fetchurl fetchgit;
|
||||||
neededNatives = [ pkgs.python ] ++ pkgs.lib.optional pkgs.stdenv.isLinux pkgs.utillinux;
|
neededNatives = [ pkgs.python ] ++ pkgs.lib.optional pkgs.stdenv.isLinux pkgs.utillinux;
|
||||||
@ -10,15 +10,15 @@ let
|
|||||||
generated = ./node.nix;
|
generated = ./node.nix;
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
tarball = pkgs.runCommand "nixui-0.1.0.tgz" { buildInputs = [ pkgs.nodejs ]; } ''
|
tarball = pkgs.runCommand "nixui.tgz" { buildInputs = [ pkgs.nodejs ]; } ''
|
||||||
mv `HOME=$PWD npm pack ${nixui}` $out
|
mv `HOME=$PWD npm pack ${nixui}` $out
|
||||||
'';
|
'';
|
||||||
build = nodePackages.buildNodePackage {
|
build = nodePackages.buildNodePackage {
|
||||||
name = "nixui-0.1.0";
|
name = "nixui";
|
||||||
src = [ tarball ];
|
src = [ tarball ];
|
||||||
buildInputs = nodePackages.nativeDeps."nixui" or [];
|
buildInputs = nodePackages.nativeDeps."nixui" or [];
|
||||||
deps = [ nodePackages.by-spec."underscore"."^1.6.0" nodePackages.by-spec."nedb"."~1.0.0" ];
|
deps = [ nodePackages.underscore nodePackages.nedb ];
|
||||||
peerDependencies = [];
|
peerDependencies = [];
|
||||||
passthru.names = [ "nixui" ];
|
passthru.names = [ "nixui" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user