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
743 B
Nix
Raw Normal View History

2022-09-29 01:17:41 +00:00
{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "faketty";
2024-05-25 13:00:58 +00:00
version = "1.0.17";
2022-09-29 01:17:41 +00:00
src = fetchCrate {
inherit pname version;
2024-05-25 13:00:58 +00:00
hash = "sha256-JUvQg8WLk5+O+3fbbQSUW6Mtp9TrYlrt+uwMAzm082Q=";
2022-09-29 01:17:41 +00:00
};
2024-05-25 13:00:58 +00:00
cargoHash = "sha256-Y+jcq2twIGDbHTA6aBGnyN9Old993Y/2j/fKnXhZGYU=";
2022-09-29 01:17:41 +00:00
postPatch = ''
patchShebangs tests/test.sh
'';
meta = with lib; {
description = "Wrapper to execute a command in a pty, even if redirecting the output";
2022-09-29 01:17:41 +00:00
homepage = "https://github.com/dtolnay/faketty";
changelog = "https://github.com/dtolnay/faketty/releases/tag/${version}";
2022-09-29 01:17:41 +00:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ figsoda ];
2023-11-27 01:17:53 +00:00
mainProgram = "faketty";
2022-09-29 01:17:41 +00:00
};
}