added basic nix flake file.

This commit is contained in:
didier amyot committed 2022-05-28 13:18:13 -04:00
1 parent a65de2a03a
commit 1e18870715
3 files changed
+75 -1

No files matched your search

Generated
+42
View File
@@ -0,0 +1,42 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1649676176,
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1650998007,
"narHash": "sha256-NcJnbGDBBN023x8s3ll3HZxBcQoPq1ry9E2sjg+4flc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a3917caedfead19f853aa5769de4c3ea4e4db584",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-21.11",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+32
View File
@@ -0,0 +1,32 @@
{
description = "Trying nest.js";
inputs = {
nixpkgs.url = "nixpkgs/nixos-21.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
rec {
packages = flake-utils.lib.flattenTree {
hello = pkgs.hello;
gitAndTools = pkgs.gitAndTools;
nodejs = pkgs.nodejs;
};
defaultPackage = packages.hello;
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
defaultApp = apps.hello;
devShell = pkgs.mkShell {
name = "Nid-JS";
buildInputs = with pkgs; [
nodejs
flyway
nodePackages.node2nix
];
};
}
);
}
+1 -1
View File
@@ -4284,7 +4284,7 @@
},
"spritzjs": {
"version": "git+https://gitlab.com/didiercrunch/spritzjs.git#a1ff5b27bb059571aa06f4adb41a2f895220c5e7",
"from": "spritzjs@git+https://gitlab.com/didiercrunch/spritzjs.git#a1ff5b27bb059571aa06f4adb41a2f895220c5e7"
"from": "git+https://gitlab.com/didiercrunch/spritzjs.git"
},
"sshpk": {
"version": "1.16.1",