mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-09 21:25:42 +00:00
Merge branch 'master' into default
This commit is contained in:
commit
7207ce9e33
@ -45,6 +45,7 @@ mv pridefetch /usr/bin/
|
|||||||
|
|
||||||
## Running on NixOS
|
## Running on NixOS
|
||||||
#### If your system supports flakes
|
#### If your system supports flakes
|
||||||
|
> ⚠ Note: This has only been tried on x86_64-linux; while it may work if your system is something different I have only tested it
|
||||||
You can run pridefetch quickly
|
You can run pridefetch quickly
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
42
flake.nix
42
flake.nix
@ -4,26 +4,30 @@
|
|||||||
outputs = { self, nixpkgs }: let
|
outputs = { self, nixpkgs }: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.supported.hydra (system: f system);
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
in rec {
|
in rec {
|
||||||
packages."${system}".pridefetch = pkgs.stdenv.mkDerivation {
|
packages = forAllSystems (system: let
|
||||||
name = "pridefetch";
|
pkgs = import nixpkgs {
|
||||||
buildInputs = [
|
inherit system;
|
||||||
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
};
|
||||||
distro
|
in {
|
||||||
]))
|
pridefetch = pkgs.stdenv.mkDerivation {
|
||||||
];
|
name = "pridefetch";
|
||||||
unpackPhase = "true";
|
buildInputs = [
|
||||||
installPhase = ''
|
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
||||||
mkdir -p $out/bin
|
distro
|
||||||
cp ${./pridefetch} $out/bin/pridefetch
|
]))
|
||||||
cp ${./packages.py} $out/bin/packages.py
|
];
|
||||||
chmod +x $out/bin/pridefetch
|
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;
|
defaultPackage = forAllSystems (system: self.packages.${system}.pridefetch);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user