mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
34 lines
531 B
Nix
34 lines
531 B
Nix
{
|
|
lib,
|
|
symlinkJoin,
|
|
television,
|
|
makeBinaryWrapper,
|
|
extraPackages,
|
|
}:
|
|
|
|
symlinkJoin {
|
|
inherit (television) version;
|
|
pname = "${television.pname}-with-pkgs";
|
|
|
|
paths = [ television ];
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/tv \
|
|
--prefix PATH : "${lib.makeBinPath extraPackages}"
|
|
'';
|
|
|
|
meta = {
|
|
inherit (television.meta)
|
|
description
|
|
longDescription
|
|
homepage
|
|
changelog
|
|
license
|
|
mainProgram
|
|
maintainers
|
|
;
|
|
};
|
|
}
|