diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2015-05-02 13:48:04 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-05-02 13:48:04 -0500 |
commit | 5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53 (patch) | |
tree | d3ced7143e30977ef27d04c7435c04f29208402c /pkgs/applications | |
parent | 5b80605cfd73bac41286804e9d0be1ccaf2f7b6a (diff) | |
download | nixpkgs-5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53.tar nixpkgs-5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53.tar.gz nixpkgs-5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53.tar.bz2 nixpkgs-5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53.tar.lz nixpkgs-5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53.tar.xz nixpkgs-5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53.tar.zst nixpkgs-5bfd9f515ff799d0b92fa8fee0c7f3e001bc4f53.zip |
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.
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/audio/clementine/default.nix | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/pkgs/applications/audio/clementine/default.nix b/pkgs/applications/audio/clementine/default.nix index 9e9af0be94d..de5fd148aa1 100644 --- a/pkgs/applications/audio/clementine/default.nix +++ b/pkgs/applications/audio/clementine/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base , liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist , usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig -, sparsehash, config, makeWrapper, gst_plugins }: +, sparsehash, config, makeWrapper, runCommand, gst_plugins }: let version = "1.2.3"; @@ -51,26 +51,11 @@ let in -stdenv.mkDerivation { - name = "clementine-${version}"; - - 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; +runCommand "clementine-${version}" +{ + buildInputs = [ unwrapped makeWrapper ] ++ gst_plugins; dontPatchELF = true; dontStrip = true; - meta = with stdenv.lib; { homepage = "http://www.clementine-player.org"; description = "A multiplatform music player" @@ -82,3 +67,8 @@ stdenv.mkDerivation { maintainers = [ maintainers.ttuegel ]; }; } +'' + mkdir -p $out/bin + makeWrapper "${unwrapped}/bin/${exeName}" "$out/bin/${exeName}" \ + --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" +'' |