1
0
Fork 0

Add nix package

This commit is contained in:
Tomas Balsys 2024-10-27 04:20:41 +02:00
parent 1dbb712d7b
commit 1b9d4854c6
1 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,17 @@
outputs = { self, nixpkgs }: nixpkgs.lib.foldAttrs (item: acc: item // acc) { } (map outputs = { self, nixpkgs }: nixpkgs.lib.foldAttrs (item: acc: item // acc) { } (map
(system: with nixpkgs.legacyPackages."${system}"; { (system: with nixpkgs.legacyPackages."${system}"; {
packages."${system}".default = buildNpmPackage {
pname = "todo-list";
version = "1.0.0";
src = ./.;
npmDepsHash = "sha256-CAV5SbdfW0+eOeCHPquAJioFRqaxMY7MMMkip+1y0Nc=";
installPhase = ''
mkdir -p $out
cp -r dist/. $out
'';
};
devShells."${system}".default = mkShell { devShells."${system}".default = mkShell {
nativeBuildInputs = [ nativeBuildInputs = [
nodejs_20 nodejs_20