Files
asciinema/default.nix

36 lines
562 B
Nix
Raw Normal View History

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