2022-09-29 01:17:41 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "faketty";
|
2023-08-28 03:00:23 +00:00
|
|
|
version = "1.0.13";
|
2022-09-29 01:17:41 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-08-28 03:00:23 +00:00
|
|
|
hash = "sha256-jV5b6mB81Nz0Q+Toj5DTQq2QcM+EoQ7jRYV/OXgtemA=";
|
2022-09-29 01:17:41 +00:00
|
|
|
};
|
|
|
|
|
2023-08-28 03:00:23 +00:00
|
|
|
cargoHash = "sha256-9t1Km/ZXzxyO72CaWM81fWGcFkri7F+wMAVom0GV/YM=";
|
2022-09-29 01:17:41 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests/test.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A wrapper to execute a command in a pty, even if redirecting the output";
|
|
|
|
homepage = "https://github.com/dtolnay/faketty";
|
2023-08-28 03:00:23 +00:00
|
|
|
changelog = "https://github.com/dtolnay/faketty/releases/tag/${version}";
|
2022-09-29 01:17:41 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|