ultrastar-creator: use qt5's mkDerivation

This commit is contained in:
worldofpeace 2019-10-08 07:06:38 -04:00
parent 0cf6a50359
commit de3f49275e

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub { lib, mkDerivation, fetchFromGitHub
, qmake, qtbase, pkgconfig, taglib, libbass, libbass_fx }: , qmake, qtbase, pkgconfig, taglib, libbass, libbass_fx }:
# TODO: get rid of (unfree) libbass # TODO: get rid of (unfree) libbass
@ -6,7 +6,7 @@
# theres a WIP branch here: # theres a WIP branch here:
# https://github.com/UltraStar-Deluxe/UltraStar-Creator/commits/BASS_removed # https://github.com/UltraStar-Deluxe/UltraStar-Creator/commits/BASS_removed
stdenv.mkDerivation { mkDerivation {
pname = "ultrastar-creator"; pname = "ultrastar-creator";
version = "2019-04-23"; version = "2019-04-23";
@ -17,7 +17,7 @@ stdenv.mkDerivation {
sha256 = "1rzz04l7s7pxj74xam0cxlq569lfpgig35kpbsplq531d4007pc9"; sha256 = "1rzz04l7s7pxj74xam0cxlq569lfpgig35kpbsplq531d4007pc9";
}; };
postPatch = with stdenv.lib; '' postPatch = with lib; ''
# we dont want prebuild binaries checked into version control! # we dont want prebuild binaries checked into version control!
rm -rf lib include rm -rf lib include
sed -e "s|DESTDIR =.*$|DESTDIR = $out/bin|" \ sed -e "s|DESTDIR =.*$|DESTDIR = $out/bin|" \
@ -36,7 +36,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ qmake pkgconfig ]; nativeBuildInputs = [ qmake pkgconfig ];
buildInputs = [ qtbase taglib libbass libbass_fx ]; buildInputs = [ qtbase taglib libbass libbass_fx ];
meta = with stdenv.lib; { meta = with lib; {
description = "Ultrastar karaoke song creation tool"; description = "Ultrastar karaoke song creation tool";
homepage = https://github.com/UltraStar-Deluxe/UltraStar-Creator; homepage = https://github.com/UltraStar-Deluxe/UltraStar-Creator;
license = licenses.gpl2; license = licenses.gpl2;