summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-05-22 13:32:24 +0200
committerGitHub <noreply@github.com>2021-05-22 13:32:24 +0200
commit97388f8683d6a9c058b2456ab9f21676db6e2baa (patch)
treed6eeced9613472f0e847aee0d2259dc6eb3fda5b /pkgs
parentbb35b1c11806b31e1e298e24b47224c9756b7e11 (diff)
parent290fa04d05cc9942daecea6f15dcf07b1192d89c (diff)
downloadnixpkgs-97388f8683d6a9c058b2456ab9f21676db6e2baa.tar
nixpkgs-97388f8683d6a9c058b2456ab9f21676db6e2baa.tar.gz
nixpkgs-97388f8683d6a9c058b2456ab9f21676db6e2baa.tar.bz2
nixpkgs-97388f8683d6a9c058b2456ab9f21676db6e2baa.tar.lz
nixpkgs-97388f8683d6a9c058b2456ab9f21676db6e2baa.tar.xz
nixpkgs-97388f8683d6a9c058b2456ab9f21676db6e2baa.tar.zst
nixpkgs-97388f8683d6a9c058b2456ab9f21676db6e2baa.zip
Merge pull request #123994 from fortuneteller2k/fetchutils
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/fetchutils/default.nix29
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fetchutils/default.nix b/pkgs/tools/misc/fetchutils/default.nix
new file mode 100644
index 00000000000..bda9175724f
--- /dev/null
+++ b/pkgs/tools/misc/fetchutils/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenvNoCC, fetchFromGitHub, bash, scdoc }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "fetchutils";
+  version = "unstable-2021-03-16";
+
+  src = fetchFromGitHub {
+    owner = "lptstr";
+    repo = pname;
+    rev = "882781a297e86f4ad4eaf143e0777fb3e7c69526";
+    sha256 = "sha256-ONrVZC6GBV5v3TeBekW9ybZjDHF3FNyXw1rYknqKRbk=";
+  };
+
+  buildInputs = [ bash scdoc ];
+
+  installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
+
+  postPatch = ''
+    patchShebangs --host src/*
+  '';
+
+  meta = with lib; {
+    description = "A collection of small shell utilities to fetch system information";
+    homepage = "https://github.com/lptstr/fetchutils";
+    license = licenses.mit;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ fortuneteller2k ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 464f34d2fa9..0352ed21571 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -381,6 +381,8 @@ in
 
   etBook = callPackage ../data/fonts/et-book { };
 
+  fetchutils = callPackage ../tools/misc/fetchutils { };
+
   fet-sh = callPackage ../tools/misc/fet-sh { };
 
   fetchbower = callPackage ../build-support/fetchbower {