Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions pkgs/applications/audio/spek/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{ stdenv, fetchzip, autoconf, automake, intltool, pkgconfig, ffmpeg, wxGTK }:
{ stdenv, fetchFromGitHub, autoreconfHook, intltool, pkgconfig, ffmpeg, wxGTK30-gtk3, wrapGAppsHook }:

stdenv.mkDerivation rec {
pname = "spek";
version = "0.8.3";
version = "unstable-2018-12-29";

src = fetchzip {
name = "${pname}-${version}-src";
url = "https://github.com/alexkay/spek/archive/v${version}.tar.gz";
sha256 = "0y4hlhswpqkqpsglrhg5xbfy1a6f9fvasgdf336vhwcjqsc3k2xv";
src = fetchFromGitHub {
owner = "alexkay";
repo = "spek";
rev = "f071c2956176ad53c7c8059e5c00e694ded31ded";
sha256 = "1l9gj9c1n92zlcjnyjyk211h83dk0idk644xnm5rs7q40p2zliy5";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake intltool ffmpeg wxGTK ];
# needed for autoreconfHook
AUTOPOINT="intltoolize --automake --copy";

preConfigure = ''
./autogen.sh
'';
nativeBuildInputs = [ autoreconfHook intltool pkgconfig wrapGAppsHook ];

buildInputs = [ ffmpeg wxGTK30-gtk3 wxGTK30-gtk3.gtk ];

meta = with stdenv.lib; {
description = "Analyse your audio files by showing their spectrogram";
homepage = "http://spek.cc/";
license = licenses.gpl3;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
};
}
12 changes: 3 additions & 9 deletions pkgs/applications/networking/ftp/filezilla/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@
, pugixml
, sqlite
, tinyxml
, wxGTK30
, wxGTK30-gtk3
, xdg_utils
}:

let
# we can drop this when wxgtk is built with gtk3 by default
# see: https://github.com/NixOS/nixpkgs/pull/73145
wxgtk' = wxGTK30.override { compat26 = false; withGtk2 = false; };

in
stdenv.mkDerivation rec {
pname = "filezilla";
version = "3.48.1";
Expand Down Expand Up @@ -52,8 +46,8 @@ stdenv.mkDerivation rec {
pugixml
sqlite
tinyxml
wxgtk'
wxgtk'.gtk
wxGTK30-gtk3
wxGTK30-gtk3.gtk
xdg_utils
];

Expand Down
14 changes: 8 additions & 6 deletions pkgs/development/libraries/wxwidgets/3.0/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ stdenv, fetchFromGitHub, fetchurl, pkgconfig
, gtk2, gtk3, libXinerama, libSM, libXxf86vm
, xorgproto, gstreamer, gst-plugins-base, GConf, setfile
, libXinerama, libSM, libXxf86vm
, gtk2, GConf ? null, gtk3
, xorgproto, gstreamer, gst-plugins-base, setfile
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, withMesa ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, withMesa ? libGLSupported
, libGLU ? null, libGL ? null
, compat24 ? false, compat26 ? true, unicode ? true
, withGtk2 ? true
Expand All @@ -28,9 +29,10 @@ stdenv.mkDerivation rec {
sha256 = "19mqglghjjqjgz4rbybn3qdgn2cz9xc511nq1pvvli9wx2k8syl1";
};

buildInputs =
[ (if withGtk2 then gtk2 else gtk3) libXinerama libSM libXxf86vm xorgproto gstreamer
gst-plugins-base GConf ]
buildInputs = [
libXinerama libSM libXxf86vm xorgproto gstreamer gst-plugins-base
] ++ optionals withGtk2 [ gtk2 GConf ]
++ optional (!withGtk2) gtk3
++ optional withMesa libGLU
++ optional withWebKit webkitgtk
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
Expand Down
12 changes: 7 additions & 5 deletions pkgs/development/libraries/wxwidgets/3.1/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv, fetchFromGitHub, fetchurl, pkgconfig
, gtk2, gtk3, libXinerama, libSM, libXxf86vm
, xorgproto, gstreamer, gst-plugins-base, GConf, setfile
, libXinerama, libSM, libXxf86vm
, gtk2, GConf ? null, gtk3
, xorgproto, gstreamer, gst-plugins-base, setfile
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, withMesa ? libGLSupported, libGLU ? null, libGL ? null
, compat28 ? false, compat30 ? true, unicode ? true
Expand All @@ -27,9 +28,10 @@ stdenv.mkDerivation rec {
sha256 = "0gfdhb7xq5vzasm7s1di39nchv42zsp0dmn4v6knzb7mgsb107wb";
};

buildInputs =
[ (if withGtk2 then gtk2 else gtk3) libXinerama libSM libXxf86vm xorgproto gstreamer
gst-plugins-base GConf ]
buildInputs = [
libXinerama libSM libXxf86vm xorgproto gstreamer gst-plugins-base
] ++ optionals withGtk2 [ gtk2 GConf ]
++ optional (!withGtk2) gtk3
++ optional withMesa libGLU
++ optional withWebKit webkitgtk
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
Expand Down
25 changes: 20 additions & 5 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15139,6 +15139,9 @@ in

wxGTK = wxGTK28;

wxGTK30 = wxGTK30-gtk2;
wxGTK31 = wxGTK31-gtk2;

wxGTK28 = callPackage ../development/libraries/wxwidgets/2.8 {
inherit (gnome2) GConf;
};
Expand All @@ -15149,18 +15152,32 @@ in
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QuickTime;
};

wxGTK30 = callPackage ../development/libraries/wxwidgets/3.0 {
wxGTK30-gtk2 = callPackage ../development/libraries/wxwidgets/3.0 {
withGtk2 = true;
inherit (gnome2) GConf;
inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit;
};

wxGTK31 = callPackage ../development/libraries/wxwidgets/3.1 {
wxGTK30-gtk3 = callPackage ../development/libraries/wxwidgets/3.0 {
withGtk2 = false;
inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit;
};

wxGTK31-gtk2 = callPackage ../development/libraries/wxwidgets/3.1 {
withGtk2 = true;
inherit (gnome2) GConf;
inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit;
};

wxGTK31-gtk3 = callPackage ../development/libraries/wxwidgets/3.1 {
withGtk2 = false;
inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit;
};

wxmac = callPackage ../development/libraries/wxwidgets/3.0/mac.nix {
inherit (darwin.apple_sdk.frameworks) AGL Cocoa Kernel;
inherit (darwin.stubs) setfile rez derez;
Expand Down Expand Up @@ -22177,9 +22194,7 @@ in

soxr = callPackage ../applications/misc/audio/soxr { };

spek = callPackage ../applications/audio/spek {
ffmpeg = ffmpeg_2;
};
spek = callPackage ../applications/audio/spek { };

spotify = callPackage ../applications/audio/spotify {
libgcrypt = libgcrypt_1_5;
Expand Down