mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
15 lines
307 B
Nix
15 lines
307 B
Nix
{ 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 ]}
|
|
'';
|
|
}
|