treewide: cmake buildInputs to nativeBuildInputs, minor cleanups

This commit is contained in:
Ben Siraphob
2021-01-01 11:52:33 +07:00
parent 54ab07c1fe
commit b04fc593e7
212 changed files with 611 additions and 634 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
# For pthread_cancel
cmakeFlags = [ "-DCMAKE_EXE_LINKER_FLAGS=-lgcc_s" ];
buildInputs = [ zlib SDL cmake ];
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib SDL ];
meta = {
homepage = "http://hatari.tuxfamily.org/";
+5 -5
View File
@@ -6,15 +6,15 @@
packageOverrides = pkgs : with pkgs; {
sdlEnv = pkgs.myEnvFun {
name = "sdl";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ stdenv SDL SDL_image SDL_ttf SDL_gfx cmake SDL_net];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ stdenv SDL SDL_image SDL_ttf SDL_gfx SDL_net];
};
};
}
# Then you can install it by:
# Then you can install it by:
# $ nix-env -i env-sdl
# And you can load it simply calling:
# And you can load it simply calling:
# $ load-env-sdl
# and this will update your env vars to have 'make' and 'gcc' finding the SDL
# headers and libs.
@@ -29,7 +29,7 @@
let complicatedMyEnv = { name, buildInputs ? [], cTags ? [], extraCmds ? ""}:
pkgs.myEnvFun {
inherit name;
buildInputs = buildInputs
buildInputs = buildInputs
++ map (x : sourceWithTagsDerivation
( (addCTaggingInfo x ).passthru.sourceWithTags ) ) cTags;
extraCmds = ''
+3 -4
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, docutils, pkgconfig, glib, libpthreadstubs
{ stdenv, fetchFromGitHub, cmake, docutils, pkg-config, glib, libpthreadstubs
, libXau, libXdmcp, xcbutil }:
stdenv.mkDerivation {
@@ -11,9 +11,8 @@ stdenv.mkDerivation {
sha256 = "040nqgfh564frvqkrkmak3x3h0yadz6kzk81jkfvd9vd20a9drh7";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake docutils glib libpthreadstubs libXau
libXdmcp xcbutil ];
nativeBuildInputs = [ cmake pkg-config docutils ];
buildInputs = [ glib libpthreadstubs libXau libXdmcp xcbutil ];
meta = with stdenv.lib; {
description = "Use external locker (such as i3lock) as X screen saver";