2023-12-04 11:34:44 +00:00
|
|
|
final: prev: {
|
|
|
|
nix-index-unwrapped = prev.nix-index-unwrapped.overrideAttrs (oldAttrs: rec {
|
|
|
|
inherit (oldAttrs) pname;
|
|
|
|
src = prev.fetchFromGitHub {
|
|
|
|
owner = "teutat3s";
|
|
|
|
repo = "nix-index";
|
2024-06-12 20:36:54 +00:00
|
|
|
rev = "d8ee4d9fe63f7895acaad97bc228a077c57f871e";
|
|
|
|
hash = "sha256-fcGHfG2K0Q4YWH4WSCtC0WNy/4HgfSLk91gLeyne6ts=";
|
2023-12-04 11:34:44 +00:00
|
|
|
};
|
2024-06-12 20:36:54 +00:00
|
|
|
version = "unstable-2024-06-12";
|
2023-12-04 11:34:44 +00:00
|
|
|
|
|
|
|
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (
|
|
|
|
prev.lib.const {
|
|
|
|
name = "${pname}-vendor.tar.gz";
|
|
|
|
inherit src;
|
2024-06-12 20:36:54 +00:00
|
|
|
outputHash = "sha256-pZCGeZK5AJrxcrqXC5NZhGDda+90rRdWXy00CYD8SYY=";
|
2023-12-04 11:34:44 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace etc/command-not-found.* \
|
|
|
|
--subst-var out
|
|
|
|
install -Dm444 etc/command-not-found.* -t $out/etc/profile.d
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
}
|