2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "faketty";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.0.17";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-JUvQg8WLk5+O+3fbbQSUW6Mtp9TrYlrt+uwMAzm082Q=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-Y+jcq2twIGDbHTA6aBGnyN9Old993Y/2j/fKnXhZGYU=";
|
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
|
|
|
};
|
|
|
|
}
|