nixpkgs/pkgs/tools/misc/faketty/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
745 B
Nix
Raw Normal View History

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