2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "faketty";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.0.14";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-oma8Vmp1AMmEGyZG8i/ztiyYH0RrLZ/l/vXgPJs+5o0=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-+gojthIR5WMSjN1gCUyN0cKHWYBKBezsckVZJD7JncM=";
|
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
|
|
|
};
|
|
|
|
}
|