treewide: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, jre, makeWrapper, unzip }:
|
||||
{ lib, stdenv, fetchurl, jre, makeWrapper, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "astrolabe-generator";
|
||||
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
--add-flags "-jar $out/share/java/AstrolabeGenerator-${version}.jar"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib;{
|
||||
meta = with lib;{
|
||||
homepage = "https://www.astrolabeproject.com";
|
||||
description = "A Java-based tool for generating EPS files for constructing astrolabes and related tools";
|
||||
license = licenses.gpl3;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, freeglut, gtk2, gtkglext, libjpeg_turbo, libtheora, libXmu
|
||||
{ lib, stdenv, fetchurl, freeglut, gtk2, gtkglext, libjpeg_turbo, libtheora, libXmu
|
||||
, lua, libGLU, libGL, pkgconfig, perl, autoreconfHook
|
||||
}:
|
||||
|
||||
@@ -67,9 +67,9 @@ stdenv.mkDerivation {
|
||||
meta = {
|
||||
description = "Free space simulation";
|
||||
homepage = "https://celestia.space/";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
license = lib.licenses.gpl2;
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.peti ];
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.peti ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, gtk2-x11 , pkgconfig , python3 , gfortran , lesstif
|
||||
{ lib, stdenv, fetchurl, gtk2-x11 , pkgconfig , python3 , gfortran , lesstif
|
||||
, cfitsio , getopt , perl , groff , which, darwin, ncurses
|
||||
}:
|
||||
|
||||
@@ -22,13 +22,13 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ pkgconfig groff perl getopt gfortran which ];
|
||||
|
||||
buildInputs = [ gtk2-x11 lesstif cfitsio python3Env ncurses ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation ]);
|
||||
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation ]);
|
||||
|
||||
patches = [ ./wrapper.patch ./clang.patch ./aarch64.patch ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument";
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument";
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin (with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks");
|
||||
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin (with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks");
|
||||
|
||||
configurePhase=''
|
||||
substituteInPlace admin/wrapper.sh --replace '%%OUT%%' $out
|
||||
@@ -62,9 +62,9 @@ stdenv.mkDerivation rec {
|
||||
few parts in C/C++ (mainly keyboard interaction,
|
||||
plotting, widgets).'';
|
||||
homepage = "http://www.iram.fr/IRAMFR/GILDAS/gildas.html";
|
||||
license = stdenv.lib.licenses.free;
|
||||
maintainers = [ stdenv.lib.maintainers.bzizou stdenv.lib.maintainers.smaret ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
license = lib.licenses.free;
|
||||
maintainers = [ lib.maintainers.bzizou lib.maintainers.smaret ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, libSM, libICE, libGLU, libGL, libpng, lua5, autoconf, automake }:
|
||||
{ lib, stdenv, fetchurl, SDL, SDL_ttf, SDL_image, libSM, libICE, libGLU, libGL, libpng, lua5, autoconf, automake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gravit-0.5.1";
|
||||
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "https://gravit.slowchop.com";
|
||||
description = "Beautiful OpenGL-based gravity simulator";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
license = lib.licenses.gpl2;
|
||||
|
||||
longDescription = ''
|
||||
Gravit is a gravity simulator which runs under Linux, Windows and
|
||||
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
||||
view in 3D and zoom in and out.
|
||||
'';
|
||||
|
||||
platforms = stdenv.lib.platforms.mesaPlatforms;
|
||||
hydraPlatforms = stdenv.lib.platforms.linux; # darwin times out
|
||||
platforms = lib.platforms.mesaPlatforms;
|
||||
hydraPlatforms = lib.platforms.linux; # darwin times out
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, fetchurl, makeWrapper, cmake
|
||||
{ lib, stdenv, fetchFromGitHub, fetchurl, makeWrapper, cmake
|
||||
, curl, boost, gdal, glew, soil
|
||||
, libX11, libXi, libXxf86vm, libXcursor, libXrandr, libXinerama }:
|
||||
|
||||
@@ -83,8 +83,8 @@ stdenv.mkDerivation rec {
|
||||
WARNING: This build is not very usable for now.
|
||||
'';
|
||||
homepage = "https://www.openspaceproject.com/";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux;
|
||||
broken = true; # fails to build
|
||||
};
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||
})
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Renders an image of the earth or other planets into the X root window";
|
||||
|
||||
Reference in New Issue
Block a user