vaporise/flake.nix

30 lines
650 B
Nix
Raw Normal View History

2024-03-13 19:27:25 +00:00
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs-unstable,
utils,
...
}:
utils.lib.eachDefaultSystem
(
system: let
2024-03-25 22:54:47 +00:00
pkgs = import nixpkgs-unstable { inherit system; };
2024-03-13 19:27:25 +00:00
in rec
{
2024-03-25 22:54:47 +00:00
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "vpr";
2024-04-12 10:09:23 +01:00
version = "0.4.0";
2024-03-25 22:54:47 +00:00
cargoLock.lockFile = ./Cargo.lock;
src = ./.;
};
2024-03-13 19:27:25 +00:00
# Executed by `nix run`
apps.default = utils.lib.mkApp {drv = packages.default;};
}
);
}