summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlistair Bill <alistair.bill@gmail.com>2017-01-22 20:46:31 +0000
committerJörg Thalheim <joerg@higgsboson.tk>2017-01-22 21:46:31 +0100
commit15b4a3702714043c0f5d4b273bd1cbbde2dccf72 (patch)
tree958673b339926fd4c698f40db29931bf0b70f44b
parentdf0301f59bd0f7749541c50538c5b1aeaf444900 (diff)
downloadnixpkgs-15b4a3702714043c0f5d4b273bd1cbbde2dccf72.tar
nixpkgs-15b4a3702714043c0f5d4b273bd1cbbde2dccf72.tar.gz
nixpkgs-15b4a3702714043c0f5d4b273bd1cbbde2dccf72.tar.bz2
nixpkgs-15b4a3702714043c0f5d4b273bd1cbbde2dccf72.tar.lz
nixpkgs-15b4a3702714043c0f5d4b273bd1cbbde2dccf72.tar.xz
nixpkgs-15b4a3702714043c0f5d4b273bd1cbbde2dccf72.tar.zst
nixpkgs-15b4a3702714043c0f5d4b273bd1cbbde2dccf72.zip
neofetch: init at 2.0.2
-rw-r--r--lib/maintainers.nix1
-rw-r--r--pkgs/tools/misc/neofetch/default.nix33
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 36 insertions, 0 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix
index 58c8fc0f1d8..1e9a6fe0f0d 100644
--- a/lib/maintainers.nix
+++ b/lib/maintainers.nix
@@ -27,6 +27,7 @@
   akaWolf = "Artjom Vejsel <akawolf0@gmail.com>";
   akc = "Anders Claesson <akc@akc.is>";
   algorith = "Dries Van Daele <dries_van_daele@telenet.be>";
+  alibabzo = "Alistair Bill <alistair.bill@gmail.com>";
   all = "Nix Committers <nix-commits@lists.science.uu.nl>";
   ambrop72 = "Ambroz Bizjak <ambrop7@gmail.com>";
   amiddelk = "Arie Middelkoop <amiddelk@gmail.com>";
diff --git a/pkgs/tools/misc/neofetch/default.nix b/pkgs/tools/misc/neofetch/default.nix
new file mode 100644
index 00000000000..0e992f49c7a
--- /dev/null
+++ b/pkgs/tools/misc/neofetch/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "neofetch-${version}";
+  version = "2.0.2";
+  src = fetchFromGitHub {
+    owner = "dylanaraps";
+    repo = "neofetch";
+    rev = version;
+    sha256 = "15fpm6nflf6w0c758xizfifvvxrkmcc2hpzrnfw6fcngfqcvajmd";
+  };
+
+  patchPhase = ''
+    substituteInPlace ./neofetch \
+    --replace "/usr/share" "$out/share"
+  '';
+
+  dontBuild = true;
+
+
+  makeFlags = [
+    "DESTDIR=$(out)"
+    "PREFIX="
+  ];
+
+  meta = with stdenv.lib; {
+    description = "A fast, highly customizable system info script";
+    homepage = https://github.com/dylanaraps/neofetch;
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ alibabzo ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fbf1abba565..50dc44fc906 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2933,6 +2933,8 @@ in
 
   ndjbdns = callPackage ../tools/networking/ndjbdns { };
 
+  neofetch = callPackage ../tools/misc/neofetch { };
+
   nerdfonts = callPackage ../data/fonts/nerdfonts { };
 
   nestopia = callPackage ../misc/emulators/nestopia { };