Skip to content

Instantly share code, notes, and snippets.

@petermarks
Last active July 2, 2017 17:15
Show Gist options
  • Save petermarks/4e1c3d2a38a193cec1769ab95b4c9825 to your computer and use it in GitHub Desktop.
Save petermarks/4e1c3d2a38a193cec1769ab95b4c9825 to your computer and use it in GitHub Desktop.
#{ stdenv, fetchurl, qtbase, qtmultimedia, qttools, alsa-lib, libusb }:
with import <nixpkgs> {};
# TODO: disable some plugins
stdenv.mkDerivation {
name = "qlcplus-4.11.0";
src = ./qlcplus-QLC-_4.11.0;
buildInputs = [ qt5.qtbase qt5.qtscript qt5.qtmultimedia qt5.qttools alsaLib libusb libudev qt5.qmakeHook ];
nativeBuildInputs = [ pkgconfig ];
postPatch = ''
substituteInPlace "variables.pri" \
--replace "INSTALLROOT += /usr" "INSTALLROOT += \$\$(out)"
substituteInPlace "translate.sh" \
--replace "/bin/bash" "${bash}/bin/bash"
'';
enableParallelBuilding = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment