mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-14 18:57:59 +01:00
33 lines
510 B
Nix
33 lines
510 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rust,
|
|
makeRustPlatform,
|
|
version,
|
|
libiconv,
|
|
python3,
|
|
}:
|
|
(makeRustPlatform {
|
|
cargo = rust;
|
|
rustc = rust;
|
|
}).buildRustPackage
|
|
{
|
|
pname = "asciinema";
|
|
inherit version;
|
|
|
|
src = builtins.path {
|
|
path = ./.;
|
|
name = "asciinema";
|
|
};
|
|
|
|
dontUseCargoParallelTests = true;
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
nativeBuildInputs = [ rust ];
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin [
|
|
libiconv
|
|
];
|
|
|
|
nativeCheckInputs = [ python3 ];
|
|
}
|