2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "faketty";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.0.16";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-BlQnVjYPFUfEurFUE2MHOL2ad56Nu/atzRuFu4OoCSI=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
cargoHash = "sha256-q9jx03XYA977481B9xuUfaaMBDbSVx4xREj4Q1Ti/Yw=";
|
2022-09-30 11:47:45 +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-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/dtolnay/faketty/releases/tag/${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "faketty";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
}
|