3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/nix-index/wrapper.nix

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

15 lines
307 B
Nix
Raw Normal View History

{ lib, symlinkJoin, nix-index-unwrapped, makeWrapper, nix }:
symlinkJoin {
inherit (nix-index-unwrapped) name meta;
paths = [ nix-index-unwrapped ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/nix-index \
--prefix PATH : ${lib.makeBinPath [ nix ]}
'';
}