Files
asciinema/default.nix
2024-06-16 16:00:22 +02:00

36 lines
562 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];
}