mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-22 10:55:43 +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
|
||||
#### 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
|
||||
|
||||
```bash
|
||||
|
10
flake.nix
10
flake.nix
@ -4,11 +4,14 @@
|
||||
outputs = { self, nixpkgs }: let
|
||||
system = "x86_64-linux";
|
||||
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.supported.hydra (system: f system);
|
||||
in rec {
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in rec {
|
||||
packages."${system}".pridefetch = pkgs.stdenv.mkDerivation {
|
||||
in {
|
||||
pridefetch = pkgs.stdenv.mkDerivation {
|
||||
name = "pridefetch";
|
||||
buildInputs = [
|
||||
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
||||
@ -23,7 +26,8 @@
|
||||
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