os/overlays/nix-index.nix

27 lines
785 B
Nix

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