Files
yukkop 60d2e5d80f
runner nix smoke / nix label and flake smoke (push) Canceled after 0s
encryption
2026-10-15 00:40:41 +00:00

34 lines
663 B
Nix

{
cargoToml,
age,
lib,
makeWrapper,
nativeBuildInputs,
pkgs,
...
}: let
cargo = cargoToml ./Cargo.toml;
in
pkgs.rustPlatform.buildRustPackage {
pname = cargo.package.name;
version = cargo.package.version;
src = ./.;
nativeBuildInputs = nativeBuildInputs ++ [ makeWrapper ];
nativeCheckInputs = [ age ];
cargoLock.lockFile = ./Cargo.lock;
doCheck = true;
postFixup = ''
wrapProgram $out/bin/routine-tui \
--prefix PATH : ${lib.makeBinPath [ age ]}
'';
meta = {
description = cargo.package.description;
license = lib.licenses.mit;
mainProgram = "routine-tui";
};
}