mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
Merge pull request #341 from bjornfor/transmission-version-bump
transmission: bump from 2.52 to 2.60
This commit is contained in:
commit
bd6165645a
@ -1,20 +1,23 @@
|
||||
{ stdenv, fetchurl, pkgconfig, openssl, curl, intltool, libevent, gtkClient ? true, gtk }:
|
||||
{ stdenv, fetchurl, pkgconfig, openssl, curl, intltool, libevent,
|
||||
file, inotifyTools, gtk ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "transmission-2.52";
|
||||
name = "transmission-2.60"; # transmission >= 2.61 requires gtk3
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.transmissionbt.com/files/${name}.tar.xz";
|
||||
sha256 = "05sfq5h3731xc9a1k5r1q4gbs9yk0dr229asfxjjgg0lw1xzppdw";
|
||||
sha256 = "1ramdliyy8j7qqpkxg643lda11ynxwfhq6qcs31fr3h9x72l0rg4";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig openssl curl intltool libevent ] ++
|
||||
stdenv.lib.optional gtkClient gtk;
|
||||
buildInputs = [ pkgconfig openssl curl intltool libevent
|
||||
file inotifyTools gtk ];
|
||||
|
||||
configureFlags = if gtkClient then "--enable-gtk" else "--disable-gtk";
|
||||
preConfigure = ''
|
||||
sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm $out/share/icons/hicolor/icon-theme.cache
|
||||
rm -f $out/share/icons/hicolor/icon-theme.cache
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user