Files
asciinema/default.nix
Marcin Kulik 1a673358a7 nixfmt
2025-05-05 21:39:23 +02:00

36 lines
597 B
Nix

{
lib,
stdenv,
rust,
makeRustPlatform,
packageToml,
libiconv,
darwin,
python3,
}:
(makeRustPlatform {
cargo = rust;
rustc = rust;
}).buildRustPackage
{
pname = packageToml.name;
inherit (packageToml) version;
src = builtins.path {
path = ./.;
inherit (packageToml) name;
};
dontUseCargoParallelTests = true;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ rust ];
buildInputs = lib.optional stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Foundation
];
nativeCheckInputs = [ python3 ];
}