mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-26 04:35:43 +00:00
Make the flake actually work (needed to reference src directory properly)
This commit is contained in:
parent
d0a71df7e9
commit
a0122e1bee
12
flake.nix
12
flake.nix
@ -13,18 +13,20 @@
|
|||||||
in {
|
in {
|
||||||
pridefetch = pkgs.stdenv.mkDerivation {
|
pridefetch = pkgs.stdenv.mkDerivation {
|
||||||
name = "pridefetch";
|
name = "pridefetch";
|
||||||
buildInputs = [
|
buildInputs = with pkgs; [
|
||||||
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
(python39.withPackages (pythonPackages: with pythonPackages; [
|
||||||
distro
|
distro
|
||||||
]))
|
]))
|
||||||
|
zip
|
||||||
];
|
];
|
||||||
unpackPhase = "true";
|
unpackPhase = "true";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cd src
|
cd ${./src}
|
||||||
zip -r ../pridefetch.zip *
|
zip -r $out/pridefetch.zip *
|
||||||
echo '#!/usr/bin/env python' | cat - pridefetch.zip > $out/bin/pridefetch
|
echo '#!/usr/bin/env python' | cat - $out/pridefetch.zip > $out/bin/pridefetch
|
||||||
chmod +x $out/bin/pridefetch
|
chmod +x $out/bin/pridefetch
|
||||||
|
rm $out/pridefetch.zip
|
||||||
'';
|
'';
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
description = "Print out system statistics with pride flags";
|
description = "Print out system statistics with pride flags";
|
||||||
|
Loading…
Reference in New Issue
Block a user