os/overlays/nix-index.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
785 B
Nix
Raw Normal View History

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=";
};
2024-06-12 20:36:54 +00:00
version = "unstable-2024-06-12";
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=";
}
);
postInstall = ''
substituteInPlace etc/command-not-found.* \
--subst-var out
install -Dm444 etc/command-not-found.* -t $out/etc/profile.d
'';
});
}