From 67c6d584ab28da64435422031052c4bd87513908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Mon, 8 Apr 2024 17:27:50 +0200 Subject: [PATCH] add flake.nix --- flake.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 flake.nix 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; + }; + }; +}