summary refs log tree commit diff
diff options
context:
space:
mode:
authorRick van Schijndel <Mindavi@users.noreply.github.com>2022-06-02 20:23:15 +0200
committerGitHub <noreply@github.com>2022-06-02 20:23:15 +0200
commit767f59ce794ede6433027a90cdc8a053194c3ca6 (patch)
treec1f0b89ac64c20e64e4213f9469c13454d64ca88
parent352dd81758b44e670e0cb7193e44a591d8d24152 (diff)
parentf598554c7344a45bde1ed3207aad83c3131a3a9d (diff)
downloadnixpkgs-767f59ce794ede6433027a90cdc8a053194c3ca6.tar
nixpkgs-767f59ce794ede6433027a90cdc8a053194c3ca6.tar.gz
nixpkgs-767f59ce794ede6433027a90cdc8a053194c3ca6.tar.bz2
nixpkgs-767f59ce794ede6433027a90cdc8a053194c3ca6.tar.lz
nixpkgs-767f59ce794ede6433027a90cdc8a053194c3ca6.tar.xz
nixpkgs-767f59ce794ede6433027a90cdc8a053194c3ca6.tar.zst
nixpkgs-767f59ce794ede6433027a90cdc8a053194c3ca6.zip
Merge pull request #174095 from Minion3665/add-myself-to-maintainers
pridefetch: init at 1.0.0
-rw-r--r--maintainers/maintainer-list.nix11
-rw-r--r--pkgs/tools/misc/pridefetch/default.nix51
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 64 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index d807828a818..6d8ac1d16a2 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -8489,6 +8489,17 @@
       fingerprint = "3196 83D3 9A1B 4DE1 3DC2  51FD FEA8 88C9 F5D6 4F62";
     }];
   };
+  minion3665 = {
+    name = "Skyler Grey";
+    email = "skyler3665@gmail.com";
+    matrix = "@minion3665:matrix.org";
+    github = "Minion3665";
+    githubId = 34243578;
+    keys = [{
+      longkeyid = "rsa4096/0x1AFD10256B3C714D";
+      fingerprint = "D520 AC8D 7C96 9212 5B2B  BD3A 1AFD 1025 6B3C 714D";
+    }];
+  };
   mir06 = {
     email = "armin.leuprecht@uni-graz.at";
     github = "mir06";
diff --git a/pkgs/tools/misc/pridefetch/default.nix b/pkgs/tools/misc/pridefetch/default.nix
new file mode 100644
index 00000000000..9a93c6770e8
--- /dev/null
+++ b/pkgs/tools/misc/pridefetch/default.nix
@@ -0,0 +1,51 @@
+{ lib, stdenv, fetchFromGitHub, python3, zip }: let
+  version = "1.0.0";
+  sha256 = "sha256-/o4er8bO/3HUFXzP+sC+5DYv9EwmxW05o1RT5fEulEg=";
+
+  pname = "pridefetch";
+  src = fetchFromGitHub {
+    owner = "SpyHoodle";
+    repo = pname;
+    rev = "v" + version;
+    inherit sha256;
+  };
+in stdenv.mkDerivation {
+  inherit pname version src;
+  nativeBuildInputs = [
+    zip
+  ];
+  buildInputs = [
+    (python3.withPackages (pythonPackages: with pythonPackages; [
+      distro
+    ]))
+  ];
+  buildPhase = ''
+    runHook preBuild
+    pushd src
+    zip -r ../pridefetch.zip ./*
+    popd
+    echo '#!/usr/bin/env python' | cat - pridefetch.zip > pridefetch
+    rm pridefetch.zip
+    runHook postBuild
+  '';
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out/bin
+    mv pridefetch $out/bin/pridefetch
+    chmod +x $out/bin/pridefetch
+    runHook postInstall
+  '';
+  meta = with lib; {
+    description = "Print out system statistics with pride flags";
+    longDescription = ''
+      Pridefetch prints your system statistics (similarly to neofetch, screenfetch or pfetch) along with a pride flag.
+      The flag which is printed is configurable, as well as the width of the output.
+    '';
+    homepage = "https://github.com/SpyHoodle/pridefetch";
+    license = licenses.mit;
+    maintainers = [
+      maintainers.minion3665
+    ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e0c3deff3ce..a575e0c0732 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -411,6 +411,8 @@ with pkgs;
 
   pridecat = callPackage ../tools/misc/pridecat { };
 
+  pridefetch = callPackage ../tools/misc/pridefetch { };
+
   proto-contrib = callPackage ../development/tools/proto-contrib { };
 
   protoc-gen-doc = callPackage ../development/tools/protoc-gen-doc { };