geocaches for the atmosphere
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}