summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-09-29 09:35:21 +0200
committerGitHub <noreply@github.com>2022-09-29 09:35:21 +0200
commit3c0814462bbde2081ea7b4bfa8e1f9f48b70dcf2 (patch)
treef0dbd4ca286732f33e1c8ca88100474190d9f367
parent8ba120420fbdd9bd35b3a5366fa0206d8c99ade3 (diff)
parent225a3bcc62449193e93b49de81fd0dcf1265ab59 (diff)
Merge pull request #193440 from figsoda/faketty
faketty: init at 1.0.10
-rw-r--r--pkgs/tools/misc/faketty/default.nix24
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/misc/faketty/default.nix b/pkgs/tools/misc/faketty/default.nix
new file mode 100644
index 000000000000..288286aa9b30
--- /dev/null
+++ b/pkgs/tools/misc/faketty/default.nix
@@ -0,0 +1,24 @@
+{ lib, rustPlatform, fetchCrate }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "faketty";
+ version = "1.0.10";
+
+ src = fetchCrate {
+ inherit pname version;
+ sha256 = "sha256-Jljq22xbXakwKdf5TXBXzuKuKJOBjf6lzCy8aHrVC3U=";
+ };
+
+ cargoSha256 = "sha256-K0hNnqw178b7noHW76DMR0BoYhkrQpPQeHaH6Azt3Xo=";
+
+ 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 ];
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 8e50d54bc58f..1ef759798e63 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3891,6 +3891,8 @@ with pkgs;
facter = callPackage ../tools/system/facter { };
+ faketty = callPackage ../tools/misc/faketty { };
+
fasd = callPackage ../tools/misc/fasd { };
fastJson = callPackage ../development/libraries/fastjson { };