Merge pull request #24465 from Ericson2314/no-with-literal

Get rid of all `with { inherit... }` and just used `let inherit...`
This commit is contained in:
John Ericson
2017-03-30 01:49:37 -06:00
committed by GitHub
19 changed files with 22 additions and 24 deletions

View File

@@ -9,7 +9,7 @@
assert glSupport -> mesa_noglu != null;
with { inherit (stdenv.lib) optional optionals; };
let inherit (stdenv.lib) optional optionals; in
stdenv.mkDerivation rec {
name = "cairo-1.14.8";

View File

@@ -9,11 +9,11 @@
useEncumberedCode ? true,
}:
with { inherit (stdenv.lib) optional optionals optionalString; };
let
inherit (stdenv.lib) optional optionals optionalString;
version = "2.7.1"; name = "freetype-" + version;
let version = "2.7.1"; name = "freetype-" + version; in
stdenv.mkDerivation {
in stdenv.mkDerivation {
inherit name;
meta = with stdenv.lib; {

View File

@@ -1,6 +1,6 @@
{ stdenv, fetchurl, m4, cxx ? true, withStatic ? true }:
with { inherit (stdenv.lib) optional optionalString; };
let inherit (stdenv.lib) optional optionalString; in
let self = stdenv.mkDerivation rec {
name = "gmp-5.1.3";

View File

@@ -1,6 +1,6 @@
{ stdenv, fetchurl, m4, cxx ? true, withStatic ? false }:
with { inherit (stdenv.lib) optional optionalString; };
let inherit (stdenv.lib) optional optionalString; in
let self = stdenv.mkDerivation rec {
name = "gmp-6.1.1";

View File

@@ -17,7 +17,7 @@
assert faacSupport -> enableUnfree;
with { inherit (stdenv.lib) optional optionals hasPrefix; };
let inherit (stdenv.lib) optional optionals hasPrefix; in
/* ToDo:
- more deps, inspiration: http://packages.ubuntu.com/raring/libav-tools

View File

@@ -1,7 +1,7 @@
{ fetchurl, stdenv, pkgconfig, intltool, gettext, glib, libxml2, zlib, bzip2
, python, perl, gdk_pixbuf, libiconv, libintlOrEmpty }:
with { inherit (stdenv.lib) optionals; };
let inherit (stdenv.lib) optionals; in
stdenv.mkDerivation rec {
name = "libgsf-1.14.41";

View File

@@ -13,7 +13,7 @@ assert enableAsioLib -> boost != null;
assert enableGetAssets -> libxml2 != null;
assert enableJemalloc -> jemalloc != null;
with { inherit (stdenv.lib) optional; };
let inherit (stdenv.lib) optional; in
stdenv.mkDerivation rec {
name = "nghttp2-${version}";

View File

@@ -7,7 +7,7 @@
}:
{ platformVersions, abiVersions, useGoogleAPIs, useExtraSupportLibs ? false, useGooglePlayServices ? false }:
with { inherit (stdenv.lib) makeLibraryPath; };
let inherit (stdenv.lib) makeLibraryPath; in
stdenv.mkDerivation rec {
name = "android-sdk-${version}";

View File

@@ -4,7 +4,7 @@
let basename = "binutils-2.28"; in
with { inherit (stdenv.lib) optional optionals optionalString; };
let inherit (stdenv.lib) optional optionals optionalString; in
stdenv.mkDerivation rec {
name = basename + optionalString (cross != null) "-${cross.config}";