this repo has no description

add flake.nix for dev environment, .envrc

+87
+5
.envrc
···
··· 1 + #!/usr/bin/env bash 2 + 3 + if has nix_direnv_version; then 4 + use flake 5 + fi
+58
flake.lock
···
··· 1 + { 2 + "nodes": { 3 + "flake-parts": { 4 + "inputs": { 5 + "nixpkgs-lib": "nixpkgs-lib" 6 + }, 7 + "locked": { 8 + "lastModified": 1736143030, 9 + "narHash": "sha256-+hu54pAoLDEZT9pjHlqL9DNzWz0NbUn8NEAHP7PQPzU=", 10 + "owner": "hercules-ci", 11 + "repo": "flake-parts", 12 + "rev": "b905f6fc23a9051a6e1b741e1438dbfc0634c6de", 13 + "type": "github" 14 + }, 15 + "original": { 16 + "owner": "hercules-ci", 17 + "repo": "flake-parts", 18 + "type": "github" 19 + } 20 + }, 21 + "nixpkgs": { 22 + "locked": { 23 + "lastModified": 1737469691, 24 + "narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=", 25 + "owner": "NixOS", 26 + "repo": "nixpkgs", 27 + "rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab", 28 + "type": "github" 29 + }, 30 + "original": { 31 + "owner": "NixOS", 32 + "ref": "nixos-unstable", 33 + "repo": "nixpkgs", 34 + "type": "github" 35 + } 36 + }, 37 + "nixpkgs-lib": { 38 + "locked": { 39 + "lastModified": 1735774519, 40 + "narHash": "sha256-CewEm1o2eVAnoqb6Ml+Qi9Gg/EfNAxbRx1lANGVyoLI=", 41 + "type": "tarball", 42 + "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" 43 + }, 44 + "original": { 45 + "type": "tarball", 46 + "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" 47 + } 48 + }, 49 + "root": { 50 + "inputs": { 51 + "flake-parts": "flake-parts", 52 + "nixpkgs": "nixpkgs" 53 + } 54 + } 55 + }, 56 + "root": "root", 57 + "version": 7 58 + }
+24
flake.nix
···
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 4 + flake-parts = { 5 + url = "github:hercules-ci/flake-parts"; 6 + }; 7 + }; 8 + 9 + outputs = { flake-parts, ... } @ inputs : 10 + # let 11 + # system = "x86_64-linux"; 12 + # pkgs = nixpkgs.legacyPackages.${system}; 13 + # in 14 + flake-parts.lib.mkFlake { inherit inputs; } { 15 + systems = [ "x86_64-linux" ]; 16 + 17 + perSystem = { config, self', inputs', pkgs, system, ... }: { 18 + 19 + devShells.default = pkgs.mkShell { 20 + nativeBuildInputs = with pkgs; [ babashka ]; 21 + }; 22 + }; 23 + }; 24 + }