Add nix flake checks
This commit is contained in:
parent
d6cb49a0d1
commit
056acbf397
3 changed files with 74 additions and 3 deletions
|
|
@ -3,6 +3,8 @@
|
|||
nix-filter,
|
||||
pkgs,
|
||||
}: let
|
||||
inherit (pkgs.lib) cleanSource;
|
||||
|
||||
node_modules_attrs = {
|
||||
# Dependencies that should be available in the node build
|
||||
buildInputs = with pkgs; [
|
||||
|
|
@ -21,7 +23,7 @@ in {
|
|||
package = pkgs.npmlock2nix.build {
|
||||
inherit buildInputs node_modules_attrs;
|
||||
|
||||
src = pkgs.lib.cleanSource self;
|
||||
src = cleanSource self;
|
||||
|
||||
buildCommands = ["npm run build-dist"];
|
||||
|
||||
|
|
@ -33,7 +35,7 @@ in {
|
|||
shell = pkgs.npmlock2nix.shell {
|
||||
inherit buildInputs node_modules_attrs;
|
||||
|
||||
src = nix-filter.lib {
|
||||
src = nix-filter {
|
||||
root = self;
|
||||
include = [
|
||||
"package.json"
|
||||
|
|
|
|||
Reference in a new issue