Hello everyone,
is there a way to install a fork of a package in the nixpkgs? i want to install a fork of pfetch
but i cant find any resources how. does the fork need to be also a nix package? thank you so much in advance!
Hello everyone,
is there a way to install a fork of a package in the nixpkgs? i want to install a fork of pfetch
but i cant find any resources how. does the fork need to be also a nix package? thank you so much in advance!
You can try using overlays like this:
nixpkgs.overlays = [
(final: prev: {
pfetch = prev.pfetch.overrideAttrs (oldAttrs: {
src = prev.fetchFromGitHub {
owner = "repo owner";
repo = "pfetch repo name";
rev = "pfetch rev";
sha256 = "sha256-...";
};
});
})
];
If you dont know the sha you can use lib.fakeSha256 in the sha attribute
sha256 = lib.sha256;
Then rebuild your system and wait for the error and it will display what sha it received then you copy that and replace that lib.sha256
. Rebuild again after that. Hope this helps.