Clean up dev workflow a bit

This commit is contained in:
Tristan Daniël Maat 2022-08-01 21:14:18 +01:00
parent 689afa04e8
commit af062715d9
Signed by: tlater
GPG key ID: 49670FD774E43268
9 changed files with 2198 additions and 67 deletions

View file

@ -25,55 +25,15 @@
})
];
pkgs = import nixpkgs {inherit system overlays;};
package = import ./nix/package.nix {inherit self nix-filter pkgs;};
in {
packages.${system} = rec {
tlaternet-templates = pkgs.npmlock2nix.build {
src = pkgs.lib.cleanSource self;
buildInputs = with pkgs; [
util-linux
];
installPhase = ''
cp -r dist $out/
'';
node_modules_attrs = {
buildInputs = with pkgs; [
pkg-config
python3
vips
glib
];
};
};
tlaternet-templates = package.package;
default = tlaternet-templates;
};
devShells.${system} = {
default = pkgs.npmlock2nix.shell {
src = nix-filter.lib {
root = self;
include = [
"package.json"
"package-lock.json"
];
};
buildInputs = with pkgs.nodePackages; [
npm-check-updates
];
node_modules_attrs = {
buildInputs = with pkgs; [
pkg-config
python3
vips
glib
];
};
};
default = package.shell;
};
};
}