Files
asciinema/default.nix

39 lines
726 B
Nix
Raw Normal View History

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