diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f0a76cd --- /dev/null +++ b/flake.nix @@ -0,0 +1,14 @@ +{ + description = "restic-alarm"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; + outputs = { self, nixpkgs } : + let pkgs = import nixpkgs { system = "x86_64-linux"; }; + in { + defaultPackage.x86_64-linux = pkgs.rustPlatform.buildRustPackage rec { + pname = "restic-alarm"; + version = "0.0.1"; + src = ./.; + cargoLock.lockFile = ./Cargo.lock; + }; + }; +}