Compare commits

..

1 Commits

Author SHA1 Message Date
Felix Albrigtsen 3e108f4de3
WIP: Fix deps and nix-module 2024-08-24 23:02:55 +02:00
1 changed files with 15 additions and 4 deletions

View File

@ -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: {