nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 23 lines 810 B view raw
1{ haskell, haskellPackages, lib, makeWrapper, runc, stdenv }: 2let 3 inherit (haskell.lib.compose) overrideCabal addBuildTools justStaticExecutables; 4 inherit (lib) makeBinPath; 5 bundledBins = lib.optional stdenv.isLinux runc; 6 7 pkg = 8 # justStaticExecutables is needed due to https://github.com/NixOS/nix/issues/2990 9 overrideCabal 10 (o: { 11 postInstall = '' 12 ${o.postInstall or ""} 13 mkdir -p $out/libexec 14 mv $out/bin/hci $out/libexec 15 makeWrapper $out/libexec/hci $out/bin/hci --prefix PATH : ${lib.escapeShellArg (makeBinPath bundledBins)} 16 ''; 17 }) 18 (addBuildTools [ makeWrapper ] (justStaticExecutables haskellPackages.hercules-ci-cli)); 19in pkg // { 20 meta = pkg.meta // { 21 position = toString ./default.nix + ":1"; 22 }; 23 }