diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d83df95 --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2eab802 --- /dev/null +++ b/flake.nix @@ -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 + ]; + }; + } + ); +} diff --git a/package-lock.json b/package-lock.json index 08da890..6339644 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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",