Clean up dev workflow a bit
This commit is contained in:
parent
689afa04e8
commit
af062715d9
9 changed files with 2198 additions and 67 deletions
46
flake.nix
46
flake.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue