mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-09-19 14:53:38 +01:00
50ddd29d03
Currently we're using the nixpkg for running pridefetch, but due to a version mismatch we are missing the psutil package. This results in errors when running pridefetch from this flake. Overriding the buildInputs is a temporary fix before we update this in nixpkgs.
35 lines
907 B
Nix
35 lines
907 B
Nix
{
|
|
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);
|
|
};
|
|
}
|