pkgs/data: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 14:29:18 +07:00
parent 0e49ba1b64
commit 4eb185bd6a
52 changed files with 132 additions and 132 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, meson, ninja, gettext, appstream-glib, gnome3 }:
{ lib, stdenv, fetchurl, meson, ninja, gettext, appstream-glib, gnome3 }:
let
pname = "cantarell-fonts";
@@ -7,7 +7,7 @@ in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "05hpnhihwm9sxlq1qn993g03pwkmpjbn0dvnba71r1gfjv0jp2w5";
};
@@ -31,8 +31,8 @@ in stdenv.mkDerivation rec {
meta = {
description = "Default typeface used in the user interface of GNOME since version 3.0";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.ofl;
maintainers = with stdenv.lib.maintainers; [ ];
platforms = lib.platforms.all;
license = lib.licenses.ofl;
maintainers = with lib.maintainers; [ ];
};
}
+4 -4
View File
@@ -1,4 +1,4 @@
{ fetchFromGitHub, stdenv, fontforge, perl, perlPackages }:
{ fetchFromGitHub, lib, stdenv, fontforge, perl, perlPackages }:
let
version = "2.37";
@@ -18,9 +18,9 @@ let
# Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
# DejaVu changes are in public domain
# See http://dejavu-fonts.org/wiki/License for details
license = stdenv.lib.licenses.free;
license = lib.licenses.free;
platforms = stdenv.lib.platforms.all;
platforms = lib.platforms.all;
};
full-ttf = stdenv.mkDerivation {
@@ -31,7 +31,7 @@ let
src = fetchFromGitHub {
owner = "dejavu-fonts";
repo = "dejavu-fonts";
rev = "version_${stdenv.lib.replaceStrings ["."] ["_"] version}";
rev = "version_${lib.replaceStrings ["."] ["_"] version}";
sha256 = "1xknlg2h287dx34v2n5r33bpcl4biqf0cv7nak657rjki7s0k4bk";
};
@@ -1,4 +1,4 @@
{ stdenv, fetchurl } :
{ lib, stdenv, fetchurl } :
let
major = "3";
@@ -23,8 +23,8 @@ in fetchurl rec {
meta = {
description = "Pan-unicode version of Fixedsys, a classic DOS font";
homepage = "http://www.fixedsysexcelsior.com/";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.publicDomain;
maintainers = [ stdenv.lib.maintainers.ninjatrappeur ];
platforms = lib.platforms.all;
license = lib.licenses.publicDomain;
maintainers = [ lib.maintainers.ninjatrappeur ];
};
}
+1 -1
View File
@@ -22,7 +22,7 @@ in (fetchgit {
description = "The Go font family";
license = licenses.bsd3;
maintainers = with maintainers; [ sternenseemann ];
platforms = stdenv.lib.platforms.all;
platforms = lib.platforms.all;
hydraPlatforms = [];
};
}
+3 -3
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, dpkg }:
{ lib, stdenv, fetchurl, dpkg }:
let version = "20030809";
in
@@ -42,7 +42,7 @@ stdenv.mkDerivation {
from the naga10 font.
'';
homepage = "https://osdn.net/projects/efont/";
license = stdenv.lib.licenses.wadalab;
maintainers = [ stdenv.lib.maintainers.auntie ];
license = lib.licenses.wadalab;
maintainers = [ lib.maintainers.auntie ];
};
}
@@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip, raleway}:
{lib, stdenv, fetchurl, unzip, raleway}:
let
@@ -43,9 +43,9 @@ stdenv.mkDerivation rec {
homepage = "https://www.theleagueofmoveabletype.com/";
license = stdenv.lib.licenses.ofl;
license = lib.licenses.ofl;
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ bergey Profpatsch ];
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ bergey Profpatsch ];
};
}
+4 -4
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip }:
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
version = "1.2.1";
@@ -39,8 +39,8 @@ stdenv.mkDerivation rec {
meta = {
description = "A customized version of Apples Menlo-Regular font";
homepage = "https://github.com/andreberg/Meslo-Font/";
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ balajisivaraman ];
platforms = with stdenv.lib.platforms; all;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ balajisivaraman ];
platforms = with lib.platforms; all;
};
}
+3 -3
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip}:
{lib, stdenv, fetchurl, unzip}:
stdenv.mkDerivation {
name = "nafees";
@@ -56,7 +56,7 @@ stdenv.mkDerivation {
# more like a modified BSD, but still contains the GPLv2 embedded
# font exception, and some not-for-resale language.
license = "unknown";
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ bergey ];
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ bergey ];
};
}
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fontforge }:
{ lib, stdenv, fetchFromGitHub, fontforge }:
stdenv.mkDerivation rec {
pname = "navilu-font";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
installPhase = "install -Dm444 -t $out/share/fonts/truetype/ Navilu.ttf";
meta = with stdenv.lib; src.meta // {
meta = with lib; src.meta // {
description = "A Kannada handwriting font";
license = licenses.gpl3Plus;
platforms = platforms.all;
+3 -3
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip }:
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "poly";
@@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
and languages that use the Latin script and its variants.
'';
homepage = "http://www.fontsquirrel.com/fonts/poly";
license = stdenv.lib.licenses.ofl;
maintainers = with stdenv.lib.maintainers; [ relrod ];
license = lib.licenses.ofl;
maintainers = with lib.maintainers; [ relrod ];
};
}
+3 -3
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
let
srcs = [
(fetchurl {
@@ -36,7 +36,7 @@ stdenv.mkDerivation {
meta = {
description = ''Tempora font'';
license = stdenv.lib.licenses.gpl2 ;
maintainers = [stdenv.lib.maintainers.raskin];
license = lib.licenses.gpl2 ;
maintainers = [lib.maintainers.raskin];
};
}
+1 -1
View File
@@ -64,4 +64,4 @@ let
};
};
in
stdenv.lib.mapAttrs mkVariant variants
lib.mapAttrs mkVariant variants
+1 -1
View File
@@ -32,7 +32,7 @@ let
platforms = platforms.all;
};
};
in stdenv.lib.mapAttrs mkVariant {
in lib.mapAttrs mkVariant {
adventor = {
version = "2_501";
sha256 = "0qjg3x0adfppyx3x33cm07ww9i9sl88xaq07m7wfip8rmyp567fn";
@@ -1,4 +1,4 @@
{ stdenv, fetchzip }:
{ lib, stdenv, fetchzip }:
let
pname = "ttf-bitstream-vera";
version = "1.10";
@@ -6,7 +6,7 @@ in
fetchzip rec {
name = "${pname}-${version}";
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.bz2";
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.bz2";
postFetch = ''
tar -xjf $downloadedFile --strip-components=1
@@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
];
postPatch = let
templateSubstitutions = stdenv.lib.concatStringsSep "; " [
templateSubstitutions = lib.concatStringsSep "; " [
''s#Noto Color Emoji#Twitter Color Emoji#''
''s#NotoColorEmoji#TwitterColorEmoji#''
''s#Copyright .* Google Inc\.#Twitter, Inc and other contributors.#''
+2 -2
View File
@@ -1,8 +1,8 @@
{ stdenv, fetchurl, perl, kbd, bdftopcf
{ lib, stdenv, fetchurl, perl, kbd, bdftopcf
, libfaketime, fonttosfnt, mkfontscale
}:
with stdenv.lib;
with lib;
stdenv.mkDerivation {
name = "uni-vga";
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, bdftopcf
{ lib, stdenv, fetchurl, perl, bdftopcf
, fontforge, SDL, SDL_image, mkfontscale
}:
@@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
# Basically GPL2+ with font exception — because of the Unifont-augmented
# version. The reduced version is public domain.
license = "http://unifoundry.com/LICENSE.txt";
maintainers = [ stdenv.lib.maintainers.raskin ];
maintainers = [ lib.maintainers.raskin ];
homepage = "http://pelulamu.net/unscii/";
};
}
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchzip, cabextract }:
{ lib, stdenv, fetchzip, cabextract }:
fetchzip {
name = "vista-fonts-1";
@@ -26,7 +26,7 @@ fetchzip {
meta = {
description = "Some TrueType fonts from Microsoft Windows Vista (Calibri, Cambria, Candara, Consolas, Constantia, Corbel)";
homepage = "http://www.microsoft.com/typography/ClearTypeFonts.mspx";
license = stdenv.lib.licenses.unfree; # haven't read the EULA, but we probably can't redistribute these files, so...
license = lib.licenses.unfree; # haven't read the EULA, but we probably can't redistribute these files, so...
# Set a non-zero priority to allow easy overriding of the
# fontconfig configuration files.