geocaches for the atmosphere

added basic flake for builds

+1
.gitignore
··· 1 1 /target 2 + result
+7
Cargo.lock
··· 1 + # This file is automatically @generated by Cargo. 2 + # It is not intended for manual editing. 3 + version = 4 4 + 5 + [[package]] 6 + name = "geocache-world" 7 + version = "0.1.0"
+136
flake.lock
··· 1 + { 2 + "nodes": { 3 + "fenix": { 4 + "inputs": { 5 + "nixpkgs": [ 6 + "naersk", 7 + "nixpkgs" 8 + ], 9 + "rust-analyzer-src": "rust-analyzer-src" 10 + }, 11 + "locked": { 12 + "lastModified": 1752475459, 13 + "narHash": "sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU=", 14 + "owner": "nix-community", 15 + "repo": "fenix", 16 + "rev": "bf0d6f70f4c9a9cf8845f992105652173f4b617f", 17 + "type": "github" 18 + }, 19 + "original": { 20 + "owner": "nix-community", 21 + "repo": "fenix", 22 + "type": "github" 23 + } 24 + }, 25 + "flake-utils": { 26 + "inputs": { 27 + "systems": "systems" 28 + }, 29 + "locked": { 30 + "lastModified": 1731533236, 31 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 32 + "owner": "numtide", 33 + "repo": "flake-utils", 34 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 35 + "type": "github" 36 + }, 37 + "original": { 38 + "owner": "numtide", 39 + "repo": "flake-utils", 40 + "type": "github" 41 + } 42 + }, 43 + "naersk": { 44 + "inputs": { 45 + "fenix": "fenix", 46 + "nixpkgs": "nixpkgs" 47 + }, 48 + "locked": { 49 + "lastModified": 1752689277, 50 + "narHash": "sha256-uldUBFkZe/E7qbvxa3mH1ItrWZyT6w1dBKJQF/3ZSsc=", 51 + "owner": "nix-community", 52 + "repo": "naersk", 53 + "rev": "0e72363d0938b0208d6c646d10649164c43f4d64", 54 + "type": "github" 55 + }, 56 + "original": { 57 + "owner": "nix-community", 58 + "repo": "naersk", 59 + "type": "github" 60 + } 61 + }, 62 + "nixpkgs": { 63 + "locked": { 64 + "lastModified": 1752077645, 65 + "narHash": "sha256-HM791ZQtXV93xtCY+ZxG1REzhQenSQO020cu6rHtAPk=", 66 + "owner": "NixOS", 67 + "repo": "nixpkgs", 68 + "rev": "be9e214982e20b8310878ac2baa063a961c1bdf6", 69 + "type": "github" 70 + }, 71 + "original": { 72 + "owner": "NixOS", 73 + "ref": "nixpkgs-unstable", 74 + "repo": "nixpkgs", 75 + "type": "github" 76 + } 77 + }, 78 + "nixpkgs_2": { 79 + "locked": { 80 + "lastModified": 1755829505, 81 + "narHash": "sha256-4/Jd+LkQ2ssw8luQVkqVs9spDBVE6h/u/hC/tzngsPo=", 82 + "owner": "NixOS", 83 + "repo": "nixpkgs", 84 + "rev": "f937f8ecd1c70efd7e9f90ba13dfb400cf559de4", 85 + "type": "github" 86 + }, 87 + "original": { 88 + "owner": "NixOS", 89 + "ref": "nixpkgs-unstable", 90 + "repo": "nixpkgs", 91 + "type": "github" 92 + } 93 + }, 94 + "root": { 95 + "inputs": { 96 + "flake-utils": "flake-utils", 97 + "naersk": "naersk", 98 + "nixpkgs": "nixpkgs_2" 99 + } 100 + }, 101 + "rust-analyzer-src": { 102 + "flake": false, 103 + "locked": { 104 + "lastModified": 1752428706, 105 + "narHash": "sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu+QEnJn2Sfg=", 106 + "owner": "rust-lang", 107 + "repo": "rust-analyzer", 108 + "rev": "591e3b7624be97e4443ea7b5542c191311aa141d", 109 + "type": "github" 110 + }, 111 + "original": { 112 + "owner": "rust-lang", 113 + "ref": "nightly", 114 + "repo": "rust-analyzer", 115 + "type": "github" 116 + } 117 + }, 118 + "systems": { 119 + "locked": { 120 + "lastModified": 1681028828, 121 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 122 + "owner": "nix-systems", 123 + "repo": "default", 124 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 125 + "type": "github" 126 + }, 127 + "original": { 128 + "owner": "nix-systems", 129 + "repo": "default", 130 + "type": "github" 131 + } 132 + } 133 + }, 134 + "root": "root", 135 + "version": 7 136 + }
+40
flake.nix
··· 1 + { 2 + inputs = { 3 + flake-utils.url = "github:numtide/flake-utils"; 4 + naersk.url = "github:nix-community/naersk"; 5 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 6 + }; 7 + 8 + outputs = 9 + { 10 + self, 11 + flake-utils, 12 + naersk, 13 + nixpkgs, 14 + }: 15 + flake-utils.lib.eachDefaultSystem ( 16 + system: 17 + let 18 + pkgs = (import nixpkgs) { 19 + inherit system; 20 + }; 21 + 22 + naersk' = pkgs.callPackage naersk { }; 23 + 24 + in 25 + rec { 26 + # For `nix build` & `nix run`: 27 + defaultPackage = naersk'.buildPackage { 28 + src = ./.; 29 + }; 30 + 31 + # For `nix develop` (optional, can be skipped): 32 + devShell = pkgs.mkShell { 33 + nativeBuildInputs = with pkgs; [ 34 + rustc 35 + cargo 36 + ]; 37 + }; 38 + } 39 + ); 40 + }