diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-08-17 01:17:53 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2015-08-17 21:05:52 +0300 |
commit | 1a22ad6b1805d5b90dbe632aae6d91692464db6b (patch) | |
tree | 3a516244298a7f087bfb238e3450ea4374ce4c36 /pkgs/applications/audio/deadbeef/default.nix | |
parent | 4a12ff77cc4374a9dfceb974615d1863025623b8 (diff) |
deadbeef: add -with-plugins wrapper and a necessary patch
Diffstat (limited to 'pkgs/applications/audio/deadbeef/default.nix')
-rw-r--r-- | pkgs/applications/audio/deadbeef/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/audio/deadbeef/default.nix b/pkgs/applications/audio/deadbeef/default.nix index 9dd4db6843267..410ddb4c6f12f 100644 --- a/pkgs/applications/audio/deadbeef/default.nix +++ b/pkgs/applications/audio/deadbeef/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, intltool, pkgconfig +{ stdenv, fetchurl, intltool, pkgconfig, fetchpatch # deadbeef can use either gtk2 or gtk3 , gtk2Support ? true, gtk2 ? null , gtk3Support ? false, gtk3 ? null, gsettings_desktop_schemas ? null, makeWrapper ? null @@ -51,7 +51,7 @@ stdenv.mkDerivation rec { name = "deadbeef-0.6.2"; src = fetchurl { - url = "http://garr.dl.sourceforge.net/project/deadbeef/${name}.tar.bz2"; + url = "mirror://sourceforge/project/deadbeef/${name}.tar.bz2"; sha256 = "06jfsqyakpvq0xhah7dlyvdzh5ym3hhb4yfczczw11ijd1kbjcrl"; }; @@ -82,6 +82,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + patches = [ (fetchpatch { + url = "https://github.com/Alexey-Yakovenko/deadbeef/commit/e7725ea73fa1bd279a3651704870156bca8efea8.patch"; + sha256 = "0a04l2607y3swcq9b1apffl1chdwj38jwfiizxcfmdbia4a0qlyg"; + }) + ]; + postInstall = if !gtk3Support then "" else '' wrapProgram "$out/bin/deadbeef" \ --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" |