mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-09-19 22:55:43 +01:00
30 lines
722 B
Nix
30 lines
722 B
Nix
|
{
|
||
|
description = "A flake to run pridefetch";
|
||
|
|
||
|
outputs = { self, nixpkgs }: let
|
||
|
system = "x86_64-linux";
|
||
|
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
};
|
||
|
in rec {
|
||
|
packages."${system}".pridefetch = pkgs.stdenv.mkDerivation {
|
||
|
name = "pridefetch";
|
||
|
buildInputs = [
|
||
|
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
||
|
distro
|
||
|
]))
|
||
|
];
|
||
|
unpackPhase = "true";
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
cp ${./pridefetch} $out/bin/pridefetch
|
||
|
cp ${./packages.py} $out/bin/packages.py
|
||
|
chmod +x $out/bin/pridefetch
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
defaultPackage."${system}" = packages."${system}".pridefetch;
|
||
|
};
|
||
|
}
|