commit f25610e58520a62719abe6f23f1c2823fd9ea7d8 Author: Malte Tammena Date: Fri Aug 26 17:17:50 2022 +0200 Initial shells diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..6a9b262 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake .#nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..8eb1fd0 --- /dev/null +++ b/flake.lock @@ -0,0 +1,57 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1644229661, + "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "fup": { + "inputs": { + "flake-utils": "flake-utils" + }, + "locked": { + "lastModified": 1657226504, + "narHash": "sha256-GIYNjuq4mJlFgqKsZ+YrgzWm0IpA4axA3MCrdKYj7gs=", + "owner": "gytis-ivaskevicius", + "repo": "flake-utils-plus", + "rev": "2bf0f91643c2e5ae38c1b26893ac2927ac9bd82a", + "type": "github" + }, + "original": { + "owner": "gytis-ivaskevicius", + "repo": "flake-utils-plus", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 0, + "narHash": "sha256-ePuWn7z/J5p2lO7YokOG1o01M0pDDVL3VrStaPpS5Ig=", + "path": "/nix/store/iyhi6xsbzsizsj0bdf1mj7vfn1v0q85l-source", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "fup": "fup", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3643043 --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + description = "A very basic flake"; + inputs.fup.url = "github:gytis-ivaskevicius/flake-utils-plus"; + + outputs = { + self, + fup, + nixpkgs, + }: + fup.lib.eachDefaultSystem (system: let + pkgs = import nixpkgs {inherit system;}; + in { + devShells = { + nix = pkgs.mkShell { + packages = with pkgs; [ + alejandra + ]; + }; + node = pkgs.mkShell { + packages = with pkgs; [ + nodejs yarn + ]; + }; + }; + }); +}