23 wrapBinary = libPaths: binaryName: ''
24 wrapProgram "$out/bin/${binaryName}" \
25 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libPaths}"
27 pkg = stdenv.mkDerivation (rec {
28 inherit (attrs) version src;
30 name = "${toolName}-${version}";
35 homepage = "http://bitscope.com/software/";
36 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
37 license = licenses.unfree;
38 platforms = [ "x86_64-linux" ];
39 maintainers = with maintainers; [
43 // (attrs.meta or { });
64 attrs.unpackPhase or ''
65 dpkg-deb -x ${attrs.src} ./
69 attrs.installPhase or ''
72 ${(wrapBinary libs) attrs.toolName}
77 pname = attrs.toolName;
78 inherit (attrs) version;
79 runScript = "${pkg.outPath}/bin/${attrs.toolName}";
82 inherit (pkg) meta name;