mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-25 20:25:43 +00:00
Merge branch 'master' into default
This commit is contained in:
commit
4fecd534f8
15
README.md
15
README.md
@ -42,3 +42,18 @@ You can also add pridefetch to your `$PATH` to run it anywhere<br>
|
|||||||
```bash
|
```bash
|
||||||
mv pridefetch /usr/bin/
|
mv pridefetch /usr/bin/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Running on NixOS
|
||||||
|
#### If your system supports flakes
|
||||||
|
You can run pridefetch quickly
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nix run github:SpyHoodle/pridefetch -- -f trans
|
||||||
|
```
|
||||||
|
|
||||||
|
Or install it
|
||||||
|
|
||||||
|
```
|
||||||
|
nix profile install github:SpyHoodle/pridefetch
|
||||||
|
pridefetch -f trans
|
||||||
|
```
|
||||||
|
24
flake.lock
Normal file
24
flake.lock
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653087707,
|
||||||
|
"narHash": "sha256-zfno3snrzZTWQ2B7K53QHrGZwrjnJLTRPalymrSsziU=",
|
||||||
|
"path": "/nix/store/3g25cg20m43hvsy17d7nz0jxwk79a77w-source",
|
||||||
|
"rev": "cbd40c72b2603ab54e7208f99f9b35fc158bc009",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
29
flake.nix
Normal file
29
flake.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user