29 lines
761 B
Nix
29 lines
761 B
Nix
{
|
|
description = "Development environment flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }: nixpkgs.lib.foldAttrs (item: acc: item // acc) { } (map
|
|
(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 {
|
|
nativeBuildInputs = [
|
|
nodejs_20
|
|
tmux
|
|
];
|
|
};
|
|
}) [ "x86_64-linux" "aarch64-linux" ]);
|
|
}
|