summary refs log tree commit diff
path: root/pkgs/tools/misc/yafetch
diff options
context:
space:
mode:
authorIvar Scholten <ivar.scholten@protonmail.com>2021-05-13 16:50:34 +0200
committerIvar Scholten <ivar.scholten@protonmail.com>2021-05-17 18:07:22 +0200
commit9db029e405c1f2af503f9b916340f609c2459be3 (patch)
tree56388393d2323d20ad22982723960d5bb9107111 /pkgs/tools/misc/yafetch
parent6140a94f4ff248135cdf58a262df1d8cf1960f33 (diff)
downloadnixpkgs-9db029e405c1f2af503f9b916340f609c2459be3.tar
nixpkgs-9db029e405c1f2af503f9b916340f609c2459be3.tar.gz
nixpkgs-9db029e405c1f2af503f9b916340f609c2459be3.tar.bz2
nixpkgs-9db029e405c1f2af503f9b916340f609c2459be3.tar.lz
nixpkgs-9db029e405c1f2af503f9b916340f609c2459be3.tar.xz
nixpkgs-9db029e405c1f2af503f9b916340f609c2459be3.tar.zst
nixpkgs-9db029e405c1f2af503f9b916340f609c2459be3.zip
yafetch: init at unstable-2021-05-13
Diffstat (limited to 'pkgs/tools/misc/yafetch')
-rw-r--r--pkgs/tools/misc/yafetch/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/yafetch/default.nix b/pkgs/tools/misc/yafetch/default.nix
new file mode 100644
index 00000000000..cfdc0219eef
--- /dev/null
+++ b/pkgs/tools/misc/yafetch/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenv, fetchFromGitLab }:
+
+stdenv.mkDerivation rec {
+  pname = "yafetch";
+  version = "unstable-2021-05-13";
+
+  src = fetchFromGitLab {
+    owner = "cyberkitty";
+    repo = pname;
+    rev = "627465e6bf0192a9bc10f9c9385cde544766486f";
+    sha256 = "1r8jnzfyjs5ardq697crwysclfm3k8aiqvfbsyhsl251a08yls5c";
+  };
+
+  # Use the provided NixOS logo automatically
+  prePatch = ''
+    echo "#include \"ascii/nixos.h\"" > config.h
+  '';
+
+  # Fixes installation path
+  DESTDIR = placeholder "out";
+
+  meta = with lib; {
+    homepage = "https://gitlab.com/cyberkitty/yafetch";
+    description = "Yet another fetch clone written in C++";
+    license = licenses.gpl2Only;
+    maintainers = [ maintainers.ivar ];
+    platforms = platforms.linux;
+  };
+}