forked from cartoon-raccoon/pridefetch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
34 lines (30 loc) · 907 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "A flake to run pridefetch";
inputs = {
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs, nixpkgs-unstable }: let
system = "x86_64-linux";
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all (system: f system);
in rec {
packages = forAllSystems (system: let
pkgs = import nixpkgs {
inherit system;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
};
in {
pridefetch = pkgs-unstable.pridefetch.overrideAttrs (finalAttrs: previousAttrs: {
src = builtins.path { path = ./.; name = "pridefetch"; };
buildInputs = [
(pkgs-unstable.python3.withPackages (pythonPackages: with pythonPackages; [
distro
psutil
]))
];
});
});
defaultPackage = forAllSystems (system: self.packages.${system}.pridefetch);
};
}