2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "faketty";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.0.18";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-b6rHyg1rHMihmJ1okH11uDvOsqNydfK/c1cAgP6Tvx0=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-LeTZkGhr1yTPG6OoukRB2+pcEAZKtjd9b60MLBi0Xl8=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests/test.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Wrapper to execute a command in a pty, even if redirecting the output";
|
2022-09-30 11:47:45 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|