clementine: build wrapper with runCommand
We only need to run the makeWrapper command to make the wrapper, so there's no need to set src, either.
This commit is contained in:
parent
5b80605cfd
commit
5bfd9f515f
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
|
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
|
||||||
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
|
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
|
||||||
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
|
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
|
||||||
, sparsehash, config, makeWrapper, gst_plugins }:
|
, sparsehash, config, makeWrapper, runCommand, gst_plugins }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.2.3";
|
version = "1.2.3";
|
||||||
|
@ -51,26 +51,11 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
runCommand "clementine-${version}"
|
||||||
name = "clementine-${version}";
|
{
|
||||||
|
buildInputs = [ unwrapped makeWrapper ] ++ gst_plugins;
|
||||||
src = ./.;
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
unwrapped
|
|
||||||
makeWrapper
|
|
||||||
] ++ gst_plugins;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
makeWrapper "${unwrapped}/bin/${exeName}" "$out/bin/${exeName}" \
|
|
||||||
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
|
||||||
'';
|
|
||||||
|
|
||||||
preferLocalBuild = true;
|
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://www.clementine-player.org";
|
homepage = "http://www.clementine-player.org";
|
||||||
description = "A multiplatform music player"
|
description = "A multiplatform music player"
|
||||||
|
@ -82,3 +67,8 @@ stdenv.mkDerivation {
|
||||||
maintainers = [ maintainers.ttuegel ];
|
maintainers = [ maintainers.ttuegel ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
makeWrapper "${unwrapped}/bin/${exeName}" "$out/bin/${exeName}" \
|
||||||
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
||||||
|
''
|
||||||
|
|
Loading…
Reference in New Issue