2021-06-10 03:57:09 +01:00
|
|
|
{ stdenv, fetchurl, lib, libX11, libXext, alsa-lib, freetype, brand, type, version, homepage, url, sha256, ... }:
|
2018-05-17 13:30:23 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit type;
|
|
|
|
baseName = "${type}-Edit";
|
2018-06-06 20:16:07 +01:00
|
|
|
name = "${lib.toLower baseName}-${version}";
|
2018-05-17 13:30:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-11-19 20:54:19 +00:00
|
|
|
inherit url;
|
2018-05-17 13:30:23 +01:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
dontBuild = true;
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${baseName} $out/bin
|
|
|
|
'';
|
|
|
|
preFixup = let
|
|
|
|
# we prepare our library path in the let clause to avoid it become part of the input of mkDerivation
|
|
|
|
libPath = lib.makeLibraryPath [
|
|
|
|
libX11 # libX11.so.6
|
|
|
|
libXext # libXext.so.6
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib # libasound.so.2
|
2018-05-17 13:30:23 +01:00
|
|
|
freetype # libfreetype.so.6
|
|
|
|
stdenv.cc.cc.lib # libstdc++.so.6
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath "${libPath}" \
|
|
|
|
$out/bin/${baseName}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-17 13:30:23 +01:00
|
|
|
inherit homepage;
|
|
|
|
description = "Editor for the ${brand} ${type} digital mixer";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
};
|
|
|
|
}
|