mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
ultastar-manager: use qt5's mkDerivation
This commit is contained in:
parent
de3f49275e
commit
ee8032c3c3
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, symlinkJoin, qmake, diffPlugins
|
{ lib, mkDerivation, fetchFromGitHub, pkgconfig, symlinkJoin, qmake, diffPlugins
|
||||||
, qtbase, qtmultimedia, taglib, libmediainfo, libzen, libbass }:
|
, qtbase, qtmultimedia, taglib, libmediainfo, libzen, libbass }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -24,12 +24,12 @@ let
|
|||||||
repo = "UltraStar-Manager";
|
repo = "UltraStar-Manager";
|
||||||
inherit rev sha256;
|
inherit rev sha256;
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation {
|
in mkDerivation {
|
||||||
name = "${src.name}-patched";
|
name = "${src.name}-patched";
|
||||||
inherit src;
|
inherit src;
|
||||||
phases = [ "unpackPhase" "patchPhase" ];
|
phases = [ "unpackPhase" "patchPhase" ];
|
||||||
|
|
||||||
patchPhase = with stdenv.lib; ''
|
patchPhase = with lib; ''
|
||||||
# we don’t want prebuild binaries checked into version control!
|
# we don’t want prebuild binaries checked into version control!
|
||||||
rm -rf lib include
|
rm -rf lib include
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ let
|
|||||||
sed -e "s|QCore.*applicationDirPath()|QString(\"${path}\")|" -i "${file}"
|
sed -e "s|QCore.*applicationDirPath()|QString(\"${path}\")|" -i "${file}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPlugin = name: stdenv.mkDerivation {
|
buildPlugin = name: mkDerivation {
|
||||||
name = "ultrastar-manager-${name}-plugin-${version}";
|
name = "ultrastar-manager-${name}-plugin-${version}";
|
||||||
src = patchedSrc;
|
src = patchedSrc;
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ let
|
|||||||
paths = map buildPlugin plugins;
|
paths = map buildPlugin plugins;
|
||||||
};
|
};
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in mkDerivation {
|
||||||
pname = "ultrastar-manager";
|
pname = "ultrastar-manager";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = patchedSrc;
|
src = patchedSrc;
|
||||||
@ -112,7 +112,7 @@ in stdenv.mkDerivation {
|
|||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Ultrastar karaoke song manager";
|
description = "Ultrastar karaoke song manager";
|
||||||
homepage = https://github.com/UltraStar-Deluxe/UltraStar-Manager;
|
homepage = https://github.com/UltraStar-Deluxe/UltraStar-Manager;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
Loading…
Reference in New Issue
Block a user