diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-17 01:10:37 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-17 01:24:48 +0200 |
commit | cd5c9930afd91779d79e86ae1bb2924046dfbdee (patch) | |
tree | 1c3ec3dcc29d7b9a292f38c5c54658efd7762fbf | |
download | isspass-cd5c9930afd91779d79e86ae1bb2924046dfbdee.tar.gz isspass-cd5c9930afd91779d79e86ae1bb2924046dfbdee.tar.bz2 isspass-cd5c9930afd91779d79e86ae1bb2924046dfbdee.zip |
Setup nix dev environment
-rw-r--r-- | .envrc | 1 | ||||
-rw-r--r-- | flake.lock | 41 | ||||
-rw-r--r-- | flake.nix | 16 | ||||
-rw-r--r-- | shell.nix | 7 |
4 files changed, 65 insertions, 0 deletions
diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..55d0e87 --- /dev/null +++ b/flake.lock @@ -0,0 +1,41 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1660639432, + "narHash": "sha256-2WDiboOCfB0LhvnDVMXOAr8ZLDfm3WdO54CkoDPwN1A=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6c6409e965a6c883677be7b9d87a95fab6c3472e", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "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..27b1ea7 --- /dev/null +++ b/flake.nix @@ -0,0 +1,16 @@ +{ + description = "isspass flake"; + + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + + flake-utils.lib.eachDefaultSystem + (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + { + devShells.default = import ./shell.nix { inherit pkgs; }; + } + ); + +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..9518e69 --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{ pkgs ? import <nixpkgs> { } }: +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + elmPackages.elm + elm2nix + ]; +} |