Skip to content

Commit

Permalink
treewide: cmake buildInputs to nativeBuildInputs, minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
siraben committed Jan 1, 2021
1 parent 54ab07c commit b04fc59
Show file tree
Hide file tree
Showing 212 changed files with 611 additions and 634 deletions.
6 changes: 3 additions & 3 deletions pkgs/applications/audio/artyFX/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub , cairomm, cmake, libjack2, libpthreadstubs, libXdmcp, libxshmfence, libsndfile, lv2, ntk, pkgconfig }:
{ stdenv, fetchFromGitHub , cairomm, cmake, libjack2, libpthreadstubs, libXdmcp, libxshmfence, libsndfile, lv2, ntk, pkg-config }:

stdenv.mkDerivation rec {
pname = "artyFX";
Expand All @@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "0wwg8ivnpyy0235bapjy4g0ij85zq355jwi6c1nkrac79p4z9ail";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cairomm cmake libjack2 libpthreadstubs libXdmcp libxshmfence libsndfile lv2 ntk ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ cairomm libjack2 libpthreadstubs libXdmcp libxshmfence libsndfile lv2 ntk ];

meta = with stdenv.lib; {
homepage = "http://openavproductions.com/artyfx/";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/eq10q/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, cmake, fftw, gtkmm2, libxcb, lv2, pkgconfig
{ stdenv, fetchurl, fetchpatch, cmake, fftw, gtkmm2, libxcb, lv2, pkg-config
, xorg }:
stdenv.mkDerivation rec {
pname = "eq10q";
Expand All @@ -8,8 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "16mhcav8gwkp29k9ki4dlkajlcgh1i2wvldabxb046d37dq4qzrk";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake fftw gtkmm2 libxcb lv2 xorg.libpthreadstubs xorg.libXdmcp xorg.libxshmfence ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ fftw gtkmm2 libxcb lv2 xorg.libpthreadstubs xorg.libXdmcp xorg.libxshmfence ];

patches = [
(fetchpatch {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/eteroj.lv2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libuv, lv2 }:
{ stdenv, fetchFromGitHub, cmake, pkg-config, libuv, lv2 }:

stdenv.mkDerivation rec {
pname = "eteroj.lv2";
Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};

buildInputs = [ libuv lv2 ];
nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ cmake pkg-config ];

meta = with stdenv.lib; {
description = "OSC injection/ejection from/to UDP/TCP/Serial for LV2";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/game-music-emu/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb";
};

buildInputs = [ cmake ];
nativeBuildInputs = [ cmake ];

meta = with stdenv.lib; {
homepage = "https://bitbucket.org/mpyne/game-music-emu/wiki/Home";
Expand Down
13 changes: 6 additions & 7 deletions pkgs/applications/audio/kid3/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl
, pkgconfig, cmake, python3, ffmpeg_3, phonon, automoc4
, pkg-config, cmake, python3, ffmpeg_3, phonon, automoc4
, chromaprint, docbook_xml_dtd_45, docbook_xsl, libxslt
, id3lib, taglib, mp4v2, flac, libogg, libvorbis
, zlib, readline , qtbase, qttools, qtmultimedia, qtquickcontrols
Expand All @@ -15,12 +15,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-WYuEOqMu2VMOv6mkVCRXnmInFER/DWfPNqYuaTJ3vAc=";
};

nativeBuildInputs = [ wrapQtAppsHook ];
buildInputs = [
pkgconfig cmake python3 ffmpeg_3 phonon automoc4
chromaprint docbook_xml_dtd_45 docbook_xsl libxslt
id3lib taglib mp4v2 flac libogg libvorbis zlib readline
qtbase qttools qtmultimedia qtquickcontrols ];
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
buildInputs = [ python3 ffmpeg_3 phonon automoc4 chromaprint
docbook_xml_dtd_45 docbook_xsl libxslt id3lib taglib mp4v2 flac
libogg libvorbis zlib readline qtbase qttools qtmultimedia
qtquickcontrols ];

cmakeFlags = [ "-DWITH_APPS=Qt;CLI" ];
NIX_LDFLAGS = "-lm -lpthread";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ncpamixer/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkgconfig }:
{ stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkg-config }:

stdenv.mkDerivation rec {

Expand All @@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
};

buildInputs = [ ncurses libpulseaudio ];
nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ cmake pkg-config ];

configurePhase = ''
make PREFIX=$out build/Makefile
Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/audio/petrifoo/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, alsaLib, cmake, gtk2, libjack2, libgnomecanvas
, libpthreadstubs, libsamplerate, libsndfile, libtool, libxml2
, pkgconfig, openssl }:
, pkg-config, openssl }:

stdenv.mkDerivation rec {
pname = "petri-foo";
Expand All @@ -11,10 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "0b25iicgn8c42487fdw32ycfrll1pm2zjgy5djvgw6mfcaa4gizh";
};

buildInputs =
[ alsaLib cmake gtk2 libjack2 libgnomecanvas libpthreadstubs
libsamplerate libsndfile libtool libxml2 pkgconfig openssl
];
nativeBuildInputs = [ cmake pkg-config ];

buildInputs = [ alsaLib gtk2 libjack2 libgnomecanvas libpthreadstubs
libsamplerate libsndfile libtool libxml2 openssl ];

meta = with stdenv.lib; {
description = "MIDI controllable audio sampler";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/sorcer/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub , boost, cairomm, cmake, libsndfile, lv2, ntk, pkgconfig, python }:
{ stdenv, fetchFromGitHub , boost, cairomm, cmake, libsndfile, lv2, ntk, pkg-config, python }:

stdenv.mkDerivation rec {
pname = "sorcer";
Expand All @@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "1x7pi77nal10717l02qpnhrx6d7w5nqrljkn9zx5w7gpb8fpb3vp";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost cairomm cmake libsndfile lv2 ntk python ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ boost cairomm libsndfile lv2 ntk python ];

postPatch = ''
# Fix build with lv2 1.18: https://github.com/brummer10/guitarix/commit/c0334c72
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/ympd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, mpd_clientlib, openssl }:
{ stdenv, fetchFromGitHub, cmake, pkg-config, mpd_clientlib, openssl }:

stdenv.mkDerivation rec {
pname = "ympd";
Expand All @@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "1nvb19jd556v2h2bi7w4dcl507p3p8xvjkqfzrcsy7ccy3502brq";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake mpd_clientlib openssl ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ mpd_clientlib openssl ];

meta = {
homepage = "https://www.ympd.org";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/zynaddsubfx/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, alsaLib, cairo, cmake, libjack2, fftw, fltk13, lash, libjpeg
, libXpm, minixml, ntk, pkgconfig, zlib, liblo
, libXpm, minixml, ntk, pkg-config, zlib, liblo
}:

stdenv.mkDerivation rec {
Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};

buildInputs = [ alsaLib cairo libjack2 fftw fltk13 lash libjpeg libXpm minixml ntk zlib liblo ];
nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ cmake pkg-config ];

patchPhase = ''
substituteInPlace src/Misc/Config.cpp --replace /usr $out
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/editors/bonzomatic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "12mdfjvbhdqz1585772rj4cap8m4ijfci6ib62jysxjf747k41fg";
};

buildInputs = [ cmake makeWrapper alsaLib mesa_glu libXcursor libXinerama libXrandr xorgserver ];
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ alsaLib mesa_glu libXcursor libXinerama libXrandr xorgserver ];

postFixup = ''
wrapProgram $out/bin/Bonzomatic --prefix LD_LIBRARY_PATH : "${alsaLib}/lib"
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/editors/emacs-modes/melpa-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ let
};

vterm = super.vterm.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ self.emacs pkgs.cmake pkgs.libvterm-neovim ];
nativeBuildInputs = [ pkgs.cmake ];
buildInputs = old.buildInputs ++ [ self.emacs pkgs.libvterm-neovim ];
cmakeFlags = [
"-DEMACS_SOURCE=${self.emacs.src}"
"-DUSE_SYSTEM_LIBVTERM=ON"
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/graphics/autopanosiftc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ stdenv.mkDerivation {
sha256 = "0dqk8ff82gmy4v5ns5nr9gpzkc1p7c2y8c8fkid102r47wsjk44s";
};

buildInputs = [ cmake libpng libtiff libjpeg panotools libxml2 ];
nativeBuildInputs = [ cmake ];
buildInputs = [ libpng libtiff libjpeg panotools libxml2 ];

patches = [
(fetchurl {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/freecad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ in mkDerivation rec {
];

buildInputs = [
cmake coin3d xercesc ode eigen opencascade-occt gts
coin3d xercesc ode eigen opencascade-occt gts
zlib swig gfortran soqt libf2c makeWrapper mpi vtk hdf5 medfile
libGLU libXmu qtbase qttools qtwebengine qtxmlpatterns
] ++ (with pythonPackages; [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/freepv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ stdenv.mkDerivation {
sha256 = "1w19abqjn64w47m35alg7bcdl1p97nf11zn64cp4p0dydihmhv56";
};

buildInputs = [ libjpeg libGLU libGL freeglut zlib cmake libX11 libxml2 libpng
libXxf86vm ];
nativeBuildInputs = [ cmake ];
buildInputs = [ libjpeg libGLU libGL freeglut zlib libX11 libxml2 libpng libXxf86vm ];

postPatch = ''
sed -i -e '/GECKO/d' CMakeLists.txt
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/graphics/pbrt/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{stdenv, fetchFromGitHub, flex, bison, cmake, git, zlib}:

stdenv.mkDerivation {

version = "2018-08-15";
pname = "pbrt-v3";

Expand All @@ -18,12 +17,13 @@ stdenv.mkDerivation {
./openexr-cmake-3.12.patch
];

buildInputs = [ git flex bison cmake zlib ];
nativeBuildInputs = [ flex bison cmake ];
buildInputs = [ zlib ];

meta = with stdenv.lib; {
homepage = "http://pbrt.org";
description = "The renderer described in the third edition of the book 'Physically Based Rendering: From Theory To Implementation'";
platforms = platforms.linux ;
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = [ maintainers.juliendehos ];
priority = 10;
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/graphics/scantailor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ stdenv.mkDerivation {
sha256 = "1pjx3a6hs16az6rki59bchy3biy7jndjx8r125q01aq7lbf5npgg";
};

buildInputs = [ qt4 cmake libjpeg libtiff boost ];
nativeBuildInputs = [ cmake ];
buildInputs = [ qt4 libjpeg libtiff boost ];

enableParallelBuilding = true;

Expand Down
7 changes: 3 additions & 4 deletions pkgs/applications/graphics/screencloud/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ stdenv.mkDerivation rec {
# for tracking usage.
consumerKey = "23e747012c68601f27ab69c6de129ed70552d55b6";
consumerSecret = "4701cb00c1bd357bbcae7c3d713dd216";

src = fetchFromGitHub {
owner = "olav-st";
repo = "screencloud";
rev = "v${version}";
sha256 = "1s0dxa1sa37nvna5nfqdsp294810favj68qb7ghl78qna7zw0cim";
};

buildInputs = [ cmake qt4 quazip qt-mobility qxt pythonPackages.python pythonPackages.pycrypto ];
nativeBuildInputs = [ cmake ];
buildInputs = [ qt4 quazip qt-mobility qxt pythonPackages.python pythonPackages.pycrypto ];

patchPhase = ''
# Required to make the configure script work. Normally, screencloud's
Expand All @@ -28,8 +29,6 @@ stdenv.mkDerivation rec {
substituteInPlace "CMakeLists.txt" --replace "set(CMAKE_INSTALL_PREFIX \"/opt\")" ""
'';

enableParallelBuilding = true;

# We need to append /opt to our CMAKE_INSTALL_PREFIX, so we tell the Nix not
# to add the argument for us.
dontAddPrefix = true;
Expand Down
5 changes: 2 additions & 3 deletions pkgs/applications/graphics/smartdeblur/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ stdenv.mkDerivation rec {
cd src
'';

enableParallelBuilding = true;

buildInputs = [ cmake qt4 fftw ];
nativeBuildInputs = [ cmake ];
buildInputs = [ qt4 fftw ];

cmakeFlags = [ "-DUSE_SYSTEM_FFTW=ON" ];

Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/apvlv/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, cmake, pkgconfig, pcre, libxkbcommon, epoxy
{ stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, pcre, libxkbcommon, epoxy
, gtk3, poppler, freetype, libpthreadstubs, libXdmcp, libxshmfence, wrapGAppsHook
}:

Expand All @@ -16,12 +16,12 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";

nativeBuildInputs = [
pkgconfig
cmake
pkg-config
wrapGAppsHook
];

buildInputs = [
cmake
poppler pcre libxkbcommon epoxy
freetype gtk3
libpthreadstubs libXdmcp libxshmfence # otherwise warnings in compilation
Expand Down
13 changes: 6 additions & 7 deletions pkgs/applications/misc/dfilemanager/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{ stdenv, mkDerivation, fetchgit, cmake, file, qtbase, qttools, solid }:
{ stdenv, fetchgit, cmake, file, qtbase, qttools, solid }:

let
version = "git-2016-01-10";
in
mkDerivation {
stdenv.mkDerivation {
pname = "dfilemanager";
inherit version;
version = "git-2016-01-10";

src = fetchgit {
url = "git://git.code.sf.net/p/dfilemanager/code";
rev = "2c5078b05e0ad74c037366be1ab3e6a03492bde4";
sha256 = "1qwhnlcc2j8sr1f3v63sxs3m7q7w1xy6c2jqsnznjgm23b5h3hxd";
};

buildInputs = [ cmake qtbase qttools file solid ];
nativeBuildInputs = [ cmake ];
buildInputs = [ qtbase qttools file solid ];

cmakeFlags = [ "-DQT5BUILD=true" ];

Expand Down
5 changes: 3 additions & 2 deletions pkgs/applications/misc/keepassx/2.0.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, libgcrypt, qt4, xorg, ... }:
{ stdenv, fetchurl, cmake, libgcrypt, qt4, xorg }:

stdenv.mkDerivation rec {
pname = "keepassx2";
Expand All @@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "1ia7cqx9ias38mnffsl7da7g1f66bcbjsi23k49sln0c6spb9zr3";
};

buildInputs = [ cmake libgcrypt qt4 xorg.libXtst ];
nativeBuildInputs = [ cmake ];
buildInputs = [ libgcrypt qt4 xorg.libXtst ];

meta = {
description = "Qt password manager compatible with its Win32 and Pocket PC versions";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/kiwix/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig
{ stdenv, fetchurl, makeWrapper, pkg-config
, zip, python, zlib, which, icu, libmicrohttpd, lzma, aria2, wget, bc
, libuuid, libX11, libXext, libXt, libXrender, glib, dbus, dbus-glib
, gtk2, gdk-pixbuf, pango, cairo, freetype, fontconfig, alsaLib, atk, cmake
Expand Down Expand Up @@ -38,7 +38,7 @@ let
sha256 = "0sqk0vdwjq44jxbbkj1cy8qykrmafs1sickzldb2w2nshsnjshhg";
};

buildInputs = [ cmake ];
nativeBuildInputs = [ cmake ];

unpackPhase = ''
# not a nice src archive: all the files are in the root :(
Expand All @@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
sha256 = "0577phhy2na59cpcqjgldvksp0jwczyg0l6c9ghnr19i375l7yqc";
};

nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
zip python zlib xapian which icu libmicrohttpd
lzma zimlib ctpp2 aria2 wget bc libuuid makeWrapper pugixml
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/lenmus/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, pkgconfig, fetchFromGitHub, fetchpatch
{ stdenv, pkg-config, fetchFromGitHub, fetchpatch
, cmake, boost
, portmidi, sqlite
, freetype, libpng, pngpp, zlib
Expand Down Expand Up @@ -29,9 +29,9 @@ stdenv.mkDerivation rec {
})
];

nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
cmake boost
boost
portmidi sqlite
freetype libpng pngpp zlib
wxGTK30 wxsqlite3
Expand Down
Loading

0 comments on commit b04fc59

Please sign in to comment.