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

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

25 lines
642 B
Nix
Raw Normal View History

2022-09-29 01:17:41 +00:00
{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "faketty";
2022-12-17 19:31:08 +00:00
version = "1.0.12";
2022-09-29 01:17:41 +00:00
src = fetchCrate {
inherit pname version;
2022-12-17 19:31:08 +00:00
sha256 = "sha256-1q1TOwKC2Tse/Ct/6Nw7YiOviJyBZAsOBEp3sT4N0ss=";
2022-09-29 01:17:41 +00:00
};
2022-12-17 19:31:08 +00:00
cargoSha256 = "sha256-x8+7sZJnA+kEwKAu8DBF8z7JhWjJ6ZFiLaQP8kFOt08=";
2022-09-29 01:17:41 +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";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ figsoda ];
};
}