Compare commits
1 Commits
main
...
nix-deploy
Author | SHA1 | Date |
---|---|---|
Felix Albrigtsen | 3e108f4de3 |
19
flake.nix
19
flake.nix
|
@ -14,7 +14,7 @@
|
||||||
package-json = lib.importJSON ./package.json;
|
package-json = lib.importJSON ./package.json;
|
||||||
in {
|
in {
|
||||||
|
|
||||||
default = pkgs.buildNpmPackage {
|
default = pkgs.stdenv.mkDerivation {
|
||||||
pname = package-json.name;
|
pname = package-json.name;
|
||||||
version = package-json.version;
|
version = package-json.version;
|
||||||
meta.homepage = package-json.repository.url;
|
meta.homepage = package-json.repository.url;
|
||||||
|
@ -28,10 +28,21 @@
|
||||||
./flake.nix
|
./flake.nix
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
npmDepsHash = "sha256-518ln/eAlgnKcubOTquBP8gj9Q/lT5bhpJGWOeuUKmY=";
|
|
||||||
dontNpmBuild = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
importNpmLock.hooks.npmConfigHook
|
||||||
|
nodejs
|
||||||
|
# nodejs.passthru.python # for node-gyp
|
||||||
|
npmHooks.npmBuildHook
|
||||||
|
npmHooks.npmInstallHook
|
||||||
|
];
|
||||||
|
|
||||||
|
dontNpmBuild = true;
|
||||||
|
|
||||||
|
npmDeps = pkgs.importNpmLock {
|
||||||
|
npmRoot = ./.;
|
||||||
|
};
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
overlays = forAllSystems (system: {
|
overlays = forAllSystems (system: {
|
||||||
|
|
Loading…
Reference in New Issue