runwhen/flake.nix

28 lines
724 B
Nix
Raw Permalink Normal View History

2022-04-17 15:18:11 -04:00
{
description = "runwhen";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
flake-compat = {
2023-08-14 21:20:07 -04:00
url = "github:edolstra/flake-compat";
2022-04-17 15:18:11 -04:00
flake = false;
};
};
2023-08-14 21:20:07 -04:00
outputs = {self, flake-utils, naersk, flake-compat}:
2022-04-17 15:18:11 -04:00
flake-utils.lib.eachDefaultSystem (system:
let
naersk-lib = naersk.lib."${system}";
in
{
2023-08-14 21:20:07 -04:00
inherit flake-compat;
defaultPackage = naersk-lib.buildPackage rec {
2022-04-17 15:18:11 -04:00
pname = "runwhen";
2023-08-17 19:01:17 -04:00
version = "0.0.8";
2022-04-17 15:18:11 -04:00
src = ./.;
cargoBuildOptions = opts: opts ++ ["-p" "${pname}" ];
};
});
2023-08-14 18:36:07 -04:00
}