From 468f8209837802f0052b76a06108d3d3e554ff12 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Thu, 17 May 2018 14:30:23 +0200 Subject: m32edit and x32edit: init at 3.2 --- pkgs/applications/audio/midas/generic.nix | 43 +++++++++++++++++++++++++++++++ pkgs/applications/audio/midas/m32edit.nix | 9 +++++++ pkgs/applications/audio/midas/x32edit.nix | 9 +++++++ 3 files changed, 61 insertions(+) create mode 100644 pkgs/applications/audio/midas/generic.nix create mode 100644 pkgs/applications/audio/midas/m32edit.nix create mode 100644 pkgs/applications/audio/midas/x32edit.nix (limited to 'pkgs/applications/audio/midas') diff --git a/pkgs/applications/audio/midas/generic.nix b/pkgs/applications/audio/midas/generic.nix new file mode 100644 index 00000000000..f82961e6e01 --- /dev/null +++ b/pkgs/applications/audio/midas/generic.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, lib, libX11, libXext, alsaLib, freetype, brand, type, version, homepage, sha256, ... }: +stdenv.mkDerivation rec { + inherit type; + baseName = "${type}-Edit"; + name = "${baseName}-${version}"; + + src = fetchurl { + url = "http://downloads.music-group.com/software/behringer/${type}/${type}-Edit_LINUX_64bit_${version}.tar.gz"; + 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 + alsaLib # libasound.so.2 + 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} + ''; + + meta = with stdenv.lib; { + inherit homepage; + description = "Editor for the ${brand} ${type} digital mixer"; + license = licenses.unfree; + platforms = platforms.linux; + maintainers = [ maintainers.magnetophon ]; + }; +} diff --git a/pkgs/applications/audio/midas/m32edit.nix b/pkgs/applications/audio/midas/m32edit.nix new file mode 100644 index 00000000000..c8a751c235b --- /dev/null +++ b/pkgs/applications/audio/midas/m32edit.nix @@ -0,0 +1,9 @@ +{ callPackage, ... } @ args: + +callPackage ./generic.nix (args // { + brand = "Midas"; + type = "M32"; + version = "3.2"; + sha256 = "1cds6qinz37086l6pmmgrzrxadygjr2z96sjjyznnai2wz4z2nrd"; + homepage = http://www.musictri.be/Categories/Midas/Mixers/Digital/M32/p/P0B3I/downloads; +}) diff --git a/pkgs/applications/audio/midas/x32edit.nix b/pkgs/applications/audio/midas/x32edit.nix new file mode 100644 index 00000000000..4aacfcc89a3 --- /dev/null +++ b/pkgs/applications/audio/midas/x32edit.nix @@ -0,0 +1,9 @@ +{ callPackage, ... } @ args: + +callPackage ./generic.nix (args // { + brand = "Behringer"; + type = "X32"; + version = "3.2"; + sha256 = "1lzmhd0sqnlzc0khpwm82sfi48qhv7rg153a57qjih7hhhy41mzk"; + homepage = http://www.musictri.be/Categories/Behringer/Mixers/Digital/X32/p/P0ASF/downloads; +}) -- cgit 1.4.1