Files
asciinema/default.nix

33 lines
510 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,
2025-10-13 20:51:02 +02:00
version,
2024-06-09 02:34:30 +02:00
libiconv,
python3,
2024-06-16 16:00:22 +02:00
}:
(makeRustPlatform {
cargo = rust;
rustc = rust;
2025-05-05 21:36:33 +02:00
}).buildRustPackage
{
2025-10-13 20:51:02 +02:00
pname = "asciinema";
inherit version;
2025-05-05 21:36:33 +02:00
src = builtins.path {
path = ./.;
2025-10-13 20:51:02 +02:00
name = "asciinema";
2025-05-05 21:36:33 +02:00
};
2025-05-05 21:36:33 +02:00
dontUseCargoParallelTests = true;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ rust ];
2025-10-13 20:12:42 +02:00
2025-05-05 21:36:33 +02:00
buildInputs = lib.optional stdenv.isDarwin [
libiconv
];
2025-05-05 21:36:33 +02:00
nativeCheckInputs = [ python3 ];
}