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.
This commit is contained in:
Skyler 2024-02-14 22:05:53 +00:00 committed by GitHub
parent f9f9b94d67
commit 50ddd29d03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 7 deletions

View File

@ -2,10 +2,12 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 0,
"narHash": "sha256-kP4m7ZgFYj8fh7oW2L0uW0sJw/e0k1HY26HYJcvNEKM=",
"path": "/nix/store/ayvjhxw0zjwp5ipvwlhbhrwqqw553h2f-source",
"type": "path"
"lastModified": 1707877513,
"narHash": "sha256-sp0w2apswd3wv0sAEF7StOGHkns3XUQaO5erhWFZWXk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "89653a03e0915e4a872788d10680e7eec92f8600",
"type": "github"
},
"original": {
"id": "nixpkgs",
@ -14,11 +16,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1654245945,
"narHash": "sha256-PV6MZ+HuNnyLxQGa2rwt0BmCRkQS2xqhc+SeJLQM+WU=",
"lastModified": 1707877513,
"narHash": "sha256-sp0w2apswd3wv0sAEF7StOGHkns3XUQaO5erhWFZWXk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "442db9429b9fbdb6352cfb937afc8ecccfe2633f",
"rev": "89653a03e0915e4a872788d10680e7eec92f8600",
"type": "github"
},
"original": {

View File

@ -20,6 +20,12 @@
in {
pridefetch = pkgs-unstable.pridefetch.overrideAttrs (finalAttrs: previousAttrs: {
src = builtins.path { path = ./.; name = "pridefetch"; };
buildInputs = [
(pkgs-unstable.python3.withPackages (pythonPackages: with pythonPackages; [
distro
psutil
]))
];
});
});