Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pridefetch: init at 1.0.0 #174095

Merged
merged 2 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8418,6 +8418,17 @@
fingerprint = "3196 83D3 9A1B 4DE1 3DC2 51FD FEA8 88C9 F5D6 4F62";
}];
};
minion3665 = {
name = "Skyler Grey";
email = "[email protected]";
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 = "[email protected]";
github = "mir06";
Expand Down
51 changes: 51 additions & 0 deletions pkgs/tools/misc/pridefetch/default.nix
Original file line number Diff line number Diff line change
@@ -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 {
Minion3665 marked this conversation as resolved.
Show resolved Hide resolved
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
Minion3665 marked this conversation as resolved.
Show resolved Hide resolved
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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,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 { };
Expand Down