Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: be1c03ddaf86
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9ee8cf517713
Choose a head ref

Commits on Jan 4, 2019

  1. Copy the full SHA
    6edd82d View commit details
  2. Copy the full SHA
    4bdf36d View commit details
  3. Copy the full SHA
    e704063 View commit details
  4. Copy the full SHA
    517f2d3 View commit details
  5. dbus_cplusplus: disable tests

    They fail to build.
    pbogdan committed Jan 4, 2019
    Copy the full SHA
    d172733 View commit details
  6. Copy the full SHA
    6b0d3da View commit details
  7. Copy the full SHA
    9e551ae View commit details
  8. Copy the full SHA
    8fe36d7 View commit details
  9. Copy the full SHA
    ae7557c View commit details
  10. Copy the full SHA
    0b04309 View commit details
  11. box2d: don't build examples

    They fail to build and aren't included in the output anyway.
    pbogdan committed Jan 4, 2019
    Copy the full SHA
    580125f View commit details
  12. Copy the full SHA
    b137a4c View commit details
  13. Copy the full SHA
    e828ad6 View commit details
  14. Copy the full SHA
    ef5baf8 View commit details
  15. Copy the full SHA
    4510ad1 View commit details
  16. Copy the full SHA
    19d339c View commit details
  17. Copy the full SHA
    69981de View commit details
  18. Copy the full SHA
    12c733c View commit details
  19. Copy the full SHA
    6910266 View commit details
  20. Copy the full SHA
    2fe11f1 View commit details
  21. Copy the full SHA
    4477ded View commit details
  22. Copy the full SHA
    77b88af View commit details
  23. Copy the full SHA
    3b49822 View commit details
  24. Copy the full SHA
    8c83c45 View commit details
  25. Copy the full SHA
    12ac71c View commit details
  26. Copy the full SHA
    71f216b View commit details
  27. Copy the full SHA
    418a2d7 View commit details
  28. Copy the full SHA
    3d94f68 View commit details
  29. Copy the full SHA
    46fad2b View commit details
  30. Copy the full SHA
    0d8bec1 View commit details
  31. Copy the full SHA
    472c14a View commit details
  32. Copy the full SHA
    d02a1bb View commit details
  33. Copy the full SHA
    46dd3e2 View commit details
  34. Copy the full SHA
    3de83a8 View commit details
  35. Copy the full SHA
    a830472 View commit details
  36. Copy the full SHA
    ff1fc5a View commit details
  37. Copy the full SHA
    a6d2bff View commit details
  38. Copy the full SHA
    86b97b2 View commit details
  39. Copy the full SHA
    90f5c4a View commit details
  40. Copy the full SHA
    8bc5a01 View commit details
  41. Copy the full SHA
    cfdcc38 View commit details
  42. Copy the full SHA
    b0f40b4 View commit details
  43. Copy the full SHA
    78ed568 View commit details
  44. Copy the full SHA
    a898c83 View commit details
  45. Copy the full SHA
    a54cc22 View commit details
  46. Copy the full SHA
    19061fb View commit details
  47. Copy the full SHA
    510b678 View commit details
  48. Copy the full SHA
    1492dcc View commit details
  49. Copy the full SHA
    89bcdd1 View commit details
  50. Copy the full SHA
    bf61e10 View commit details
Showing with 282 additions and 73 deletions.
  1. +1 −1 nixos/tests/all-tests.nix
  2. +8 −1 nixos/tests/hardened.nix
  3. +12 −1 pkgs/applications/audio/a2jmidid/default.nix
  4. +9 −2 pkgs/applications/audio/bitmeter/default.nix
  5. +5 −0 pkgs/applications/audio/jack-rack/default.nix
  6. +5 −0 pkgs/applications/audio/lash/default.nix
  7. +1 −0 pkgs/applications/audio/pianobooster/default.nix
  8. +4 −0 pkgs/applications/audio/timemachine/default.nix
  9. +1 −6 pkgs/applications/editors/texmacs/default.nix
  10. +4 −0 pkgs/applications/graphics/ahoviewer/default.nix
  11. +7 −0 pkgs/applications/graphics/autopanosiftc/default.nix
  12. +1 −1 pkgs/applications/graphics/cinepaint/default.nix
  13. +1 −1 pkgs/applications/graphics/feh/default.nix
  14. +3 −0 pkgs/applications/graphics/goxel/default.nix
  15. +4 −0 pkgs/applications/graphics/gqview/default.nix
  16. +5 −5 pkgs/applications/misc/1password/default.nix
  17. +6 −2 pkgs/applications/misc/artha/default.nix
  18. +13 −0 pkgs/applications/misc/artha/gio-underlink.patch
  19. +4 −0 pkgs/applications/misc/gnuradio/default.nix
  20. +3 −0 pkgs/applications/misc/golden-cheetah/default.nix
  21. +4 −0 pkgs/applications/misc/k2pdfopt/default.nix
  22. +1 −0 pkgs/applications/misc/tangogps/default.nix
  23. +8 −5 pkgs/applications/misc/wsjtx/default.nix
  24. +12 −0 pkgs/applications/misc/wsjtx/super.patch
  25. +6 −6 pkgs/applications/misc/wsjtx/wsjtx.patch
  26. +1 −0 pkgs/applications/misc/xautoclick/default.nix
  27. +1 −0 pkgs/applications/networking/instant-messengers/skype-call-recorder/default.nix
  28. +4 −1 pkgs/applications/networking/offrss/default.nix
  29. +7 −0 pkgs/applications/science/chemistry/avogadro/default.nix
  30. +1 −1 pkgs/applications/science/misc/golly/beta.nix
  31. +4 −0 pkgs/applications/version-management/git-and-tools/svn-all-fast-export/default.nix
  32. +6 −0 pkgs/applications/video/aegisub/default.nix
  33. +5 −0 pkgs/applications/video/kino/default.nix
  34. +1 −0 pkgs/desktops/rox/rox-filer/default.nix
  35. +4 −0 pkgs/development/interpreters/gtk-server/default.nix
  36. +1 −0 pkgs/development/interpreters/pure/default.nix
  37. +4 −0 pkgs/development/libraries/a52dec/default.nix
  38. +5 −1 pkgs/development/libraries/box2d/default.nix
  39. +3 −0 pkgs/development/libraries/buddy/default.nix
  40. +4 −0 pkgs/development/libraries/cwiid/default.nix
  41. +1 −1 pkgs/development/libraries/dbus-cplusplus/default.nix
  42. +4 −0 pkgs/development/libraries/flatpak/default.nix
  43. +2 −0 pkgs/development/libraries/gstreamer/ugly/default.nix
  44. +3 −0 pkgs/development/libraries/libfakekey/default.nix
  45. +3 −0 pkgs/development/libraries/libmatchbox/default.nix
  46. +1 −0 pkgs/development/python-modules/sipsimple/default.nix
  47. +4 −0 pkgs/development/tools/database/sqlitebrowser/default.nix
  48. +4 −0 pkgs/games/airstrike/default.nix
  49. +4 −0 pkgs/games/eboard/default.nix
  50. +4 −0 pkgs/games/egoboo/default.nix
  51. +4 −0 pkgs/games/globulation/default.nix
  52. +4 −0 pkgs/games/gnujump/default.nix
  53. +3 −0 pkgs/games/opendungeons/default.nix
  54. +1 −1 pkgs/os-specific/linux/nvidia-x11/generic.nix
  55. +1 −0 pkgs/os-specific/linux/rtkit/default.nix
  56. +3 −1 pkgs/servers/bird/default.nix
  57. +9 −6 pkgs/servers/http/lighttpd/default.nix
  58. +2 −0 pkgs/servers/mail/postfix/default.nix
  59. +3 −3 pkgs/servers/misc/client-ip-echo/client-ip-echo.nix
  60. +3 −0 pkgs/servers/openafs/1.6/module.nix
  61. +3 −0 pkgs/servers/openafs/1.8/module.nix
  62. +4 −0 pkgs/servers/web-apps/fileshelter/default.nix
  63. +1 −1 pkgs/tools/filesystems/svnfs/default.nix
  64. +1 −0 pkgs/tools/misc/parcellite/default.nix
  65. +1 −0 pkgs/tools/misc/qjoypad/default.nix
  66. +1 −1 pkgs/tools/networking/dsniff/default.nix
  67. +2 −0 pkgs/tools/networking/ssmtp/default.nix
  68. +4 −0 pkgs/tools/system/gdmap/default.nix
  69. +4 −0 pkgs/tools/text/multitran/libmtquery/default.nix
  70. +1 −1 pkgs/tools/text/qshowdiff/default.nix
  71. +2 −2 pkgs/top-level/all-packages.nix
  72. +16 −22 pkgs/top-level/ocaml-packages.nix
2 changes: 1 addition & 1 deletion nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ in
hadoop.yarn = handleTestOn [ "x86_64-linux" ] ./hadoop/yarn.nix {};
handbrake = handleTestOn ["x86_64-linux"] ./handbrake.nix {};
haproxy = handleTest ./haproxy.nix {};
#hardened = handleTest ./hardened.nix {}; # broken due useSandbox = true
hardened = handleTest ./hardened.nix {};
hibernate = handleTest ./hibernate.nix {};
hitch = handleTest ./hitch {};
hocker-fetchdocker = handleTest ./hocker-fetchdocker {};
9 changes: 8 additions & 1 deletion nixos/tests/hardened.nix
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import ./make-test.nix ({ pkgs, ...} : {
};

machine =
{ lib, pkgs, ... }:
{ lib, pkgs, config, ... }:
with lib;
{ users.users.alice = { isNormalUser = true; extraGroups = [ "proc" ]; };
users.users.sybil = { isNormalUser = true; group = "wheel"; };
@@ -22,12 +22,19 @@ import ./make-test.nix ({ pkgs, ...} : {
options = [ "noauto" ];
};
};
boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
boot.kernelModules = [ "wireguard" ];
};

testScript =
''
$machine->waitForUnit("multi-user.target");
# Test loading out-of-tree modules
subtest "extra-module-packages", sub {
$machine->succeed("grep -Fq wireguard /proc/modules");
};
# Test hidepid
subtest "hidepid", sub {
$machine->succeed("grep -Fq hidepid=2 /proc/mounts");
13 changes: 12 additions & 1 deletion pkgs/applications/audio/a2jmidid/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
{ stdenv, fetchurl, fetchpatch, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
, wafHook
, python2Packages}:

@@ -16,6 +16,17 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig makeWrapper wafHook ];
buildInputs = [ alsaLib dbus libjack2 python dbus-python ];

patches = [
(fetchpatch {
url = https://repo.or.cz/a2jmidid.git/patch/24e3b8e543256ae8fdfb4b75eb9fd775f07c46e2;
sha256 = "1nxrvnhxlgqc9wbxnp1gnpw4wjyzxvymwcg1gh2nqzmssgfykfkc";
})
(fetchpatch {
url = https://repo.or.cz/a2jmidid.git/patch/7f82da7eb2f540a94db23331be98d42a58ddc269;
sha256 = "1nab9zf0agbcj5pvhl90pz0cx1d204d4janqflc5ymjhy8jyrsdv";
})
];

postInstall = ''
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
'';
11 changes: 9 additions & 2 deletions pkgs/applications/audio/bitmeter/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libjack2, gtk2, pkgconfig }:
{ stdenv, autoreconfHook, fetchurl, libjack2, gtk2, pkgconfig }:

stdenv.mkDerivation rec {
name = "bitmeter-${version}";
@@ -9,9 +9,16 @@ stdenv.mkDerivation rec {
sha256 = "09ck2gxqky701dc1p0ip61rrn16v0pdc7ih2hc2sd63zcw53g2a7";
};

nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libjack2 gtk2 ];

patches = [
(fetchurl {
url = https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/bitmeter/files/bitmeter-1.2-fix-build-system.patch;
sha256 = "021mz6933iw7mpk6b9cbjr8naj6smbq1hwqjszlyx72qbwrrid7k";
})
];

meta = with stdenv.lib; {
homepage = http://devel.tlrmx.org/audio/bitmeter/;
description = "Also known as jack bitscope. Useful to detect denormals";
5 changes: 5 additions & 0 deletions pkgs/applications/audio/jack-rack/default.nix
Original file line number Diff line number Diff line change
@@ -7,6 +7,11 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libjack2 ladspaH gtk2 alsaLib libxml2 librdf ];
NIX_LDFLAGS = [
"-ldl"
"-lm"
"-lpthread"
];

meta = {
description = ''An effects "rack" for the JACK low latency audio API'';
5 changes: 5 additions & 0 deletions pkgs/applications/audio/lash/default.nix
Original file line number Diff line number Diff line change
@@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
buildInputs = [ alsaLib gtk2 libjack2 libxml2 makeWrapper
pkgconfig readline ];
propagatedBuildInputs = [ libuuid ];
NIX_LDFLAGS = [
"-lm"
"-lpthread"
"-luuid"
];

postInstall = ''
for i in lash_control lash_panel
1 change: 1 addition & 0 deletions pkgs/applications/audio/pianobooster/default.nix
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
preConfigure = "cd src";

buildInputs = [ alsaLib cmake makeWrapper libGLU_combined qt4 ];
NIX_LDFLAGS = [ "-lGL" "-lpthread" ];

postInstall = ''
wrapProgram $out/bin/pianobooster \
4 changes: 4 additions & 0 deletions pkgs/applications/audio/timemachine/default.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,10 @@ stdenv.mkDerivation rec {

preConfigure = "./autogen.sh";

NIX_LDFLAGS = [
"-lm"
];

meta = {
description = "JACK audio recorder";
homepage = http://plugin.org.uk/timemachine/;
7 changes: 1 addition & 6 deletions pkgs/applications/editors/texmacs/default.nix
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ stdenv.mkDerivation {
};

buildInputs = [ guile_1_8 qt4 makeWrapper ghostscriptX freetype ];
NIX_LDFLAGS = [ "-lz" ];

postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
(if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
@@ -33,12 +34,6 @@ stdenv.mkDerivation {

inherit (common) postPatch;

postFixup = ''
bin="$out/libexec/TeXmacs/bin/texmacs.bin"
rpath=$(patchelf --print-rpath "$bin")
patchelf --set-rpath "$rpath:${zlib.out}/lib" "$bin"
'';

meta = common.meta // {
maintainers = [ stdenv.lib.maintainers.roconnor ];
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
4 changes: 4 additions & 0 deletions pkgs/applications/graphics/ahoviewer/default.nix
Original file line number Diff line number Diff line change
@@ -29,6 +29,10 @@ stdenv.mkDerivation rec {
gst_all_1.gst-plugins-base
] ++ stdenv.lib.optional useUnrar unrar;

NIX_LDFLAGS = [
"-lpthread"
];

postPatch = ''patchShebangs version.sh'';

postInstall = ''
7 changes: 7 additions & 0 deletions pkgs/applications/graphics/autopanosiftc/default.nix
Original file line number Diff line number Diff line change
@@ -10,6 +10,13 @@ stdenv.mkDerivation {

buildInputs = [ cmake libpng libtiff libjpeg panotools libxml2 ];

patches = [
(fetchurl {
url = https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch;
sha256 = "1bfcr5sps0ip9gl4jprji5jgf9wkczz6d2clsjjlbsy8r3ixi3lv";
})
];

meta = {
homepage = http://hugin.sourceforge.net/;
description = "Implementation in C of the autopano-sift algorithm for automatically stitching panoramas";
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/cinepaint/default.nix
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ in stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake pkgconfig ];

NIX_LDFLAGS = "-llcms -ljpeg -lX11";
NIX_LDFLAGS = "-lm -llcms -ljpeg -lpng -lX11";

meta = {
homepage = http://www.cinepaint.org/;
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/feh/default.nix
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
install -D -m 644 man/*.1 $out/share/man/man1
'';

checkInputs = [ perlPackages.TestCommand ];
checkInputs = [ perlPackages.perl perlPackages.TestCommand ];
preCheck = ''
export PERL5LIB="${perlPackages.TestCommand}/${perlPackages.perl.libPrefix}"
'';
3 changes: 3 additions & 0 deletions pkgs/applications/graphics/goxel/default.nix
Original file line number Diff line number Diff line change
@@ -16,6 +16,9 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ];
buildInputs = [ glfw3 gtk3 libpng12 ];
NIX_LDFLAGS = [
"-lpthread"
];

buildPhase = ''
make release
4 changes: 4 additions & 0 deletions pkgs/applications/graphics/gqview/default.nix
Original file line number Diff line number Diff line change
@@ -18,6 +18,10 @@ stdenv.mkDerivation {

hardeningDisable = [ "format" ];

NIX_LDFLAGS = [
"-lm"
];

meta = with stdenv.lib; {
description = "A fast image viewer";
homepage = http://gqview.sourceforge.net;
10 changes: 5 additions & 5 deletions pkgs/applications/misc/1password/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{ stdenv, fetchzip }:

stdenv.mkDerivation rec {
name = "1password-${version}";
version = "0.5.4";
pname = "1password";
version = "0.5.5";
src =
if stdenv.hostPlatform.system == "i686-linux" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_386_v${version}.zip";
sha256 = "0wni2hk5b1qfr24vi24jiprpi08k3qgaw9lqp61k41a1sjp3izv0";
sha256 = "14qx69fq1a3h93h167nhwp6gxka8r34295p82kim9grijrx5zz5f";
stripRoot = false;
}
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_amd64_v${version}.zip";
sha256 = "169d5fl3cfw3xrlpm9nlmwbnp0xgh0la9qybzf8ragp0020nlyih";
sha256 = "1jh1sk07k3whbr0rvc4kf221wskcdbk0zpxaj49qbwq1d89cjnpg";
stripRoot = false;
}
else if stdenv.hostPlatform.system == "x86_64-darwin" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_darwin_amd64_v${version}.zip";
sha256 = "1scikv7v33kzg9rqsrz97yklxaskvif84br13zg8annm43k5vlma";
sha256 = "1s6gw2qwsbhj4z9nrwrxs776y45ingpfp9533qz0gc1pk7ia99js";
stripRoot = false;
}
else throw "Architecture not supported";
8 changes: 6 additions & 2 deletions pkgs/applications/misc/artha/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, dbus-glib, gtk2, pkgconfig, wordnet }:
{ stdenv, autoreconfHook, fetchurl, dbus-glib, gtk2, pkgconfig, wordnet }:

stdenv.mkDerivation rec {
name = "artha-${version}";
@@ -9,9 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "0qr4ihl7ma3cq82xi1fpzvf74mm9vsg0j035xvmcp3r6rmw2fycx";
};

nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ dbus-glib gtk2 wordnet ];

patches = [
./gio-underlink.patch
];

meta = with stdenv.lib; {
description = "An offline thesaurus based on WordNet";
homepage = http://artha.sourceforge.net;
13 changes: 13 additions & 0 deletions pkgs/applications/misc/artha/gio-underlink.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/Makefile.am b/src/Makefile.am
index 0236d72..bcc1182 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -38,7 +38,7 @@ artha_LDADD = libwni.a $(WORDNET_LIB)

if POSIX
AM_CFLAGS += @libdbus_CFLAGS@
-artha_LDADD += -lX11 -ldbus-1 -ldbus-glib-1 -lgtk-x11-2.0 \
+artha_LDADD += -lX11 -ldbus-1 -ldbus-glib-1 -lgio-2.0 -lgtk-x11-2.0 \
-lgdk-x11-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0
else
artha_LDADD += @GTK_LIBS@
4 changes: 4 additions & 0 deletions pkgs/applications/misc/gnuradio/default.nix
Original file line number Diff line number Diff line change
@@ -50,6 +50,10 @@ stdenv.mkDerivation rec {
Mako cheetah numpy scipy matplotlib pyqt4 pygtk wxPython pyopengl
];

NIX_LDFLAGS = [
"-lpthread"
];

enableParallelBuilding = true;

postPatch = ''
3 changes: 3 additions & 0 deletions pkgs/applications/misc/golden-cheetah/default.nix
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@ in stdenv.mkDerivation rec {
qtconnectivity
];
nativeBuildInputs = [ flex makeWrapper qmake yacc ];
NIX_LDFLAGS = [
"-lz"
];
preConfigure = ''
cp src/gcconfig.pri.in src/gcconfig.pri
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
4 changes: 4 additions & 0 deletions pkgs/applications/misc/k2pdfopt/default.nix
Original file line number Diff line number Diff line change
@@ -104,6 +104,10 @@ stdenv.mkDerivation rec {

cmakeFlags = [ "-DCMAKE_C_FLAGS=-I${src}/include_mod" ];

NIX_LDFLAGS = [
"-lpthread"
];

installPhase = ''
install -D -m 755 k2pdfopt $out/bin/k2pdfopt
'';
1 change: 1 addition & 0 deletions pkgs/applications/misc/tangogps/default.nix
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gettext gtk2 gconf curl libexif sqlite libxml2 ];
NIX_LDFLAGS = [ "-lm" ];

# bogus includes fail with newer library version
postPatch = ''
13 changes: 8 additions & 5 deletions pkgs/applications/misc/wsjtx/default.nix
Original file line number Diff line number Diff line change
@@ -4,12 +4,12 @@

stdenv.mkDerivation rec {
name = "wsjtx-${version}";
version = "1.9.1";
version = "2.0.0";

# This is a composite source tarball containing both wsjtx and a hamlib fork
# This is a "superbuild" tarball containing both wsjtx and a hamlib fork
src = fetchurl {
url = "http://physics.princeton.edu/pulsar/K1JT/wsjtx-${version}.tgz";
sha256 = "143r17fri08mwz28g17wcfxy60h3xgfk46mln5lmdr9k6355aqqc";
url = "http://physics.princeton.edu/pulsar/k1jt/wsjtx-${version}.tgz";
sha256 = "66434f69f256742da1fe057ec51e4464cab2614f0bfb1a310c04a385b77bd014";
};

# Hamlib builds with autotools, wsjtx builds with cmake
@@ -20,7 +20,10 @@ stdenv.mkDerivation rec {
];
buildInputs = [ fftw fftwFloat libusb1 qtbase qtmultimedia qtserialport ];

# Composite build has its own patch step after it extracts the inner archives
# Remove Git dependency from superbuild since sources are included
patches = [ ./super.patch ];

# Superbuild has its own patch step after it extracts the inner archives
postPatch = "cp ${./wsjtx.patch} wsjtx.patch";

meta = with stdenv.lib; {
12 changes: 12 additions & 0 deletions pkgs/applications/misc/wsjtx/super.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3bf97a4..2c9dce5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,7 +23,6 @@ source tarball." )
#
# Find_library (USB_LIBRARY NAMES libusb.a usb)
Find_program (PATCH_EXECUTABLE patch REQUIRED)
-Find_package (Git REQUIRED)

#
# extra C flags to minimize hamlib excutable sizes
12 changes: 6 additions & 6 deletions pkgs/applications/misc/wsjtx/wsjtx.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Index: wsjtx/CMakeLists.txt
===================================================================
--- wsjtx/CMakeLists.txt (revision 8382)
+++ wsjtx/CMakeLists.txt (working copy)
@@ -866,6 +866,7 @@
find_package (Qt5Widgets 5 REQUIRED)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3e7e816b..e7dbb14a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -860,6 +860,7 @@ find_package (Qt5Widgets 5 REQUIRED)
find_package (Qt5Multimedia 5 REQUIRED)
find_package (Qt5PrintSupport 5 REQUIRED)
find_package (Qt5Sql 5 REQUIRED)
+find_package (Qt5SerialPort 5 REQUIRED)

if (WIN32)
1 change: 1 addition & 0 deletions pkgs/applications/misc/xautoclick/default.nix
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ stdenv.mkDerivation rec {
mkdir .bin
ln -s ${qt4}/bin/moc .bin/moc-qt4
addToSearchPath PATH .bin
sed -i -e "s@LD=\$_cc@LD=\$_cxx@" configure
'';

meta = with stdenv.lib; {
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ stdenv.mkDerivation {
patches = [ ./conference.patch ];

buildInputs = [ cmake lame id3lib libvorbis qt4 libogg ];
NIX_LDFLAGS = [ "-lvorbis" ];

meta = {
homepage = http://atdot.ch/scr/;
Loading