add flake.nix

This commit is contained in:
Armaël Guéneau 2024-04-08 17:27:50 +02:00
parent 08df74f005
commit 67c6d584ab

14
flake.nix Normal file
View file

@ -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;
};
};
}