PrideFetch/flake.nix
Skyler 50ddd29d03
Add psutil to flake.nix (#29)
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.
2024-02-14 22:05:53 +00:00

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);
};
}