Files
asciinema/default.nix

36 lines
597 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;
2025-05-05 21:36:33 +02:00
}).buildRustPackage
{
pname = packageToml.name;
inherit (packageToml) version;
2025-05-05 21:36:33 +02:00
src = builtins.path {
path = ./.;
inherit (packageToml) name;
};
2025-05-05 21:36:33 +02:00
dontUseCargoParallelTests = true;
2025-05-05 21:36:33 +02:00
cargoLock.lockFile = ./Cargo.lock;
2025-05-05 21:36:33 +02:00
nativeBuildInputs = [ rust ];
buildInputs = lib.optional stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Foundation
];
2025-05-05 21:36:33 +02:00
nativeCheckInputs = [ python3 ];
}