2022-05-22 20:21:50 +01:00
{
description = " A f l a k e t o r u n p r i d e f e t c h " ;
outputs = { self , nixpkgs }: let
system = " x 8 6 _ 6 4 - l i n u x " ;
2022-05-22 21:00:40 +01:00
forAllSystems = f : nixpkgs . lib . genAttrs nixpkgs . lib . systems . supported . hydra ( system : f system ) ;
2022-05-22 20:21:50 +01:00
in rec {
2022-05-22 21:00:40 +01:00
packages = forAllSystems ( system : let
pkgs = import nixpkgs {
inherit system ;
} ;
in {
pridefetch = pkgs . stdenv . mkDerivation {
name = " p r i d e f e t c h " ;
2022-05-24 20:46:35 +01:00
buildInputs = with pkgs ; [
( python39 . withPackages ( pythonPackages : with pythonPackages ; [
2022-05-22 21:00:40 +01:00
distro
] ) )
2022-05-24 20:46:35 +01:00
zip
2022-05-22 21:00:40 +01:00
] ;
unpackPhase = " t r u e " ;
installPhase = ''
mkdir - p $ out/bin
2022-05-24 20:46:35 +01:00
cd $ { ./src }
zip - r $ out/pridefetch.zip *
echo ' #!/usr/bin/env python' | cat - $out/pridefetch.zip > $out/bin/pridefetch
2022-05-22 21:00:40 +01:00
chmod + x $ out/bin/pridefetch
2022-05-24 20:46:35 +01:00
rm $ out/pridefetch.zip
2022-05-22 21:00:40 +01:00
'' ;
2022-05-23 09:22:18 +01:00
meta = with pkgs . lib ; {
description = " P r i n t o u t s y s t e m s t a t i s t i c s w i t h p r i d e f l a g s " ;
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 = " b s d " ;
# https://static.domenkozar.com/nixpkgs-manual-sphinx-exp/meta.xml.html
# > Catch-all for licenses that are essentially similar to the original BSD license with the advertising clause removed, i.e. permissive non-copyleft free software licenses. This includes the X11 (“MIT”) License.
# our license is MIT, so BSD is set here
maintainers = [
{
email = " s k y l e r 3 6 6 5 @ g m a i l . c o m " ;
github = " m i n i o n 3 6 6 5 " ;
githubId = 34243578 ;
name = " S k y l e r G r e y " ;
}
] ; # TODO: Replace this with a reference to the maintainer list after adding myself to it
platforms = systems . supported . hydra ;
} ;
2022-05-22 21:00:40 +01:00
} ;
} ) ;
2022-05-22 20:21:50 +01:00
2022-05-22 21:00:40 +01:00
defaultPackage = forAllSystems ( system : self . packages . ${ system } . pridefetch ) ;
2022-05-22 20:21:50 +01:00
} ;
}