mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
pridefetch: init at 1.0.0
pridefetch is a cli tool to display system information (similarly to neofetch or pfetch) in your terminal along with a pride flag.
This commit is contained in:
parent
3bb9f75827
commit
f598554c73
51
pkgs/tools/misc/pridefetch/default.nix
Normal file
51
pkgs/tools/misc/pridefetch/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user