Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2021-01-27 12:24:09 +00:00 committed by GitHub
commit 1b5da764a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
93 changed files with 461 additions and 238 deletions

View File

@ -262,6 +262,13 @@ checkConfigOutput true config.value.mkbefore ./types-anything/mk-mods.nix
checkConfigOutput 1 config.value.nested.foo ./types-anything/mk-mods.nix checkConfigOutput 1 config.value.nested.foo ./types-anything/mk-mods.nix
checkConfigOutput baz config.value.nested.bar.baz ./types-anything/mk-mods.nix checkConfigOutput baz config.value.nested.bar.baz ./types-anything/mk-mods.nix
## types.functionTo
checkConfigOutput "input is input" config.result ./functionTo/trivial.nix
checkConfigOutput "a b" config.result ./functionTo/merging-list.nix
checkConfigError 'A definition for option .fun.\[function body\]. is not of type .string.. Definition values:\n- In .*wrong-type.nix' config.result ./functionTo/wrong-type.nix
checkConfigOutput "b a" config.result ./functionTo/list-order.nix
checkConfigOutput "a c" config.result ./functionTo/merging-attrs.nix
cat <<EOF cat <<EOF
====== module tests ====== ====== module tests ======
$pass Pass $pass Pass

View File

@ -0,0 +1,25 @@
{ lib, config, ... }:
let
inherit (lib) types;
in {
options = {
fun = lib.mkOption {
type = types.functionTo (types.listOf types.str);
};
result = lib.mkOption {
type = types.str;
default = toString (config.fun {
a = "a";
b = "b";
c = "c";
});
};
};
config.fun = lib.mkMerge [
(input: lib.mkAfter [ input.a ])
(input: [ input.b ])
];
}

View File

@ -0,0 +1,27 @@
{ lib, config, ... }:
let
inherit (lib) types;
in {
options = {
fun = lib.mkOption {
type = types.functionTo (types.attrsOf types.str);
};
result = lib.mkOption {
type = types.str;
default = toString (lib.attrValues (config.fun {
a = "a";
b = "b";
c = "c";
}));
};
};
config.fun = lib.mkMerge [
(input: { inherit (input) a; })
(input: { inherit (input) b; })
(input: {
b = lib.mkForce input.c;
})
];
}

View File

@ -0,0 +1,24 @@
{ lib, config, ... }:
let
inherit (lib) types;
in {
options = {
fun = lib.mkOption {
type = types.functionTo (types.listOf types.str);
};
result = lib.mkOption {
type = types.str;
default = toString (config.fun {
a = "a";
b = "b";
c = "c";
});
};
};
config.fun = lib.mkMerge [
(input: [ input.a ])
(input: [ input.b ])
];
}

View File

@ -0,0 +1,17 @@
{ lib, config, ... }:
let
inherit (lib) types;
in {
options = {
fun = lib.mkOption {
type = types.functionTo types.str;
};
result = lib.mkOption {
type = types.str;
default = config.fun "input";
};
};
config.fun = input: "input is ${input}";
}

View File

@ -0,0 +1,18 @@
{ lib, config, ... }:
let
inherit (lib) types;
in {
options = {
fun = lib.mkOption {
type = types.functionTo types.str;
};
result = lib.mkOption {
type = types.str;
default = config.fun 0;
};
};
config.fun = input: input + 1;
}

View File

@ -453,6 +453,16 @@ rec {
functor = (defaultFunctor name) // { wrapped = elemType; }; functor = (defaultFunctor name) // { wrapped = elemType; };
}; };
functionTo = elemType: mkOptionType {
name = "function that evaluates to a(n) ${elemType.name}";
check = isFunction;
merge = loc: defs:
fnArgs: (mergeDefinitions (loc ++ [ "[function body]" ]) elemType (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs)).mergedValue;
getSubOptions = elemType.getSubOptions;
getSubModules = elemType.getSubModules;
substSubModules = m: functionTo (elemType.substSubModules m);
};
# A submodule (like typed attribute set). See NixOS manual. # A submodule (like typed attribute set). See NixOS manual.
submodule = modules: submoduleWith { submodule = modules: submoduleWith {
shorthandOnlyDefinesConfig = true; shorthandOnlyDefinesConfig = true;

View File

@ -25,6 +25,7 @@ in {
}; };
packages = mkOption { packages = mkOption {
type = types.functionTo (types.listOf types.package);
default = hp: []; default = hp: [];
defaultText = "hp: []"; defaultText = "hp: []";
example = "hp: with hp; [ text lens ]"; example = "hp: with hp; [ text lens ]";

View File

@ -42,6 +42,7 @@ let
}; };
extraPackages = mkOption { extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = self: []; default = self: [];
example = literalExample '' example = literalExample ''
haskellPackages: [ haskellPackages: [

View File

@ -21,6 +21,7 @@ in
}; };
extraPackages = mkOption { extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = self: []; default = self: [];
example = literalExample '' example = literalExample ''
haskellPackages: [ haskellPackages: [

View File

@ -66,6 +66,7 @@ in
}; };
plugins = mkOption { plugins = mkOption {
type = types.functionTo (types.listOf types.package);
default = plugins: []; default = plugins: [];
defaultText = "plugins: []"; defaultText = "plugins: []";
example = literalExample "plugins: with plugins; [ themeify stlviewer ]"; example = literalExample "plugins: with plugins; [ themeify stlviewer ]";

View File

@ -77,6 +77,7 @@ in {
''; '';
}; };
extraPackages = mkOption { extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = ps: []; default = ps: [];
defaultText = "ps: []"; defaultText = "ps: []";
example = literalExample '' example = literalExample ''

View File

@ -64,6 +64,7 @@ in
}; };
extraPackages = mkOption { extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = p: []; default = p: [];
description = '' description = ''
Extra Python packages available to supybot plugins. The Extra Python packages available to supybot plugins. The

View File

@ -37,6 +37,7 @@ in
description = "Enable an uncustomised exwm configuration."; description = "Enable an uncustomised exwm configuration.";
}; };
extraPackages = mkOption { extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = self: []; default = self: [];
example = literalExample '' example = literalExample ''
epkgs: [ epkgs: [

View File

@ -53,6 +53,7 @@ in {
}; };
extraPackages = mkOption { extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = self: []; default = self: [];
defaultText = "self: []"; defaultText = "self: []";
example = literalExample '' example = literalExample ''

View File

@ -8,7 +8,7 @@
import ./make-test-python.nix ({ pkgs, ... }: import ./make-test-python.nix ({ pkgs, ... }:
{ {
name = "vault-postgresql"; name = "vault-postgresql";
meta = with pkgs.stdenv.lib.maintainers; { meta = with pkgs.lib.maintainers; {
maintainers = [ lnl7 roberth ]; maintainers = [ lnl7 roberth ];
}; };
machine = { lib, pkgs, ... }: { machine = { lib, pkgs, ... }: {

View File

@ -1,4 +1,4 @@
{ stdenv, callPackage, vimUtils, buildEnv, makeWrapper }: { lib, stdenv, callPackage, vimUtils, buildEnv, makeWrapper }:
let let
macvim = callPackage ./macvim.nix { inherit stdenv; }; macvim = callPackage ./macvim.nix { inherit stdenv; };
@ -12,7 +12,6 @@ let
# sourcing of the user's vimrc. Use `customRC = "source $HOME/.vim/vimrc"` # sourcing of the user's vimrc. Use `customRC = "source $HOME/.vim/vimrc"`
# if you want to preserve that behavior. # if you want to preserve that behavior.
configure = let configure = let
inherit (stdenv) lib;
doConfig = config: let doConfig = config: let
vimrcConfig = config // { vimrcConfig = config // {
# always source the bundled system vimrc # always source the bundled system vimrc

View File

@ -1,10 +1,8 @@
{ stdenv, fetchFromGitHub, flex, bison, pkg-config, zlib, libtiff, libpng, fftw { lib, stdenv, fetchFromGitHub, flex, bison, pkg-config, zlib, libtiff, libpng, fftw
, cairo, readline, ffmpeg_3, makeWrapper, wxGTK30, netcdf, blas , cairo, readline, ffmpeg_3, makeWrapper, wxGTK30, netcdf, blas
, proj, gdal, geos, sqlite, postgresql, libmysqlclient, python2Packages, libLAS, proj-datumgrid , proj, gdal, geos, sqlite, postgresql, libmysqlclient, python2Packages, libLAS, proj-datumgrid
}: }:
let inherit (stdenv) lib; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "grass"; name = "grass";
version = "7.6.1"; version = "7.6.1";

View File

@ -125,7 +125,7 @@ python3.pkgs.buildPythonApplication {
''; '';
passthru.updateScript = import ./update.nix { passthru.updateScript = import ./update.nix {
inherit (stdenv) lib; inherit lib;
inherit inherit
writeScript writeScript
common-updater-scripts common-updater-scripts

View File

@ -20,7 +20,6 @@
}: }:
let let
inherit (stdenv) lib;
buildClient = monolithic || client; buildClient = monolithic || client;
buildCore = monolithic || enableDaemon; buildCore = monolithic || enableDaemon;
in in

View File

@ -1,4 +1,4 @@
{ stdenv, requireFile, makeWrapper, autoPatchelfHook, wrapGAppsHook, which, more { lib, stdenv, requireFile, makeWrapper, autoPatchelfHook, wrapGAppsHook, which, more
, file, atk, alsaLib, cairo, fontconfig, gdk-pixbuf, glib, gnome3, gtk2-x11, gtk3 , file, atk, alsaLib, cairo, fontconfig, gdk-pixbuf, glib, gnome3, gtk2-x11, gtk3
, heimdal, krb5, libsoup, libvorbis, speex, openssl, zlib, xorg, pango, gtk2 , heimdal, krb5, libsoup, libvorbis, speex, openssl, zlib, xorg, pango, gtk2
, gnome2, nss, nspr, gtk_engines, freetype, dconf, libpng12, libxml2 , gnome2, nss, nspr, gtk_engines, freetype, dconf, libpng12, libxml2
@ -11,8 +11,6 @@
}: }:
let let
inherit (stdenv) lib;
openssl' = symlinkJoin { openssl' = symlinkJoin {
name = "openssl-backwards-compat"; name = "openssl-backwards-compat";
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -13,7 +13,8 @@
, csdp ? null , csdp ? null
, version, coq-version ? null, , version, coq-version ? null,
}@args: }@args:
let lib = import ../../../../build-support/coq/extra-lib.nix {inherit (stdenv) lib;}; in let lib' = lib; in
let lib = import ../../../../build-support/coq/extra-lib.nix {lib = lib';}; in
with builtins; with lib; with builtins; with lib;
let let
release = { release = {

View File

@ -91,7 +91,7 @@ let
# NOTE: this may take a while since it has to update all packages in # NOTE: this may take a while since it has to update all packages in
# nixpkgs.nodePackages # nixpkgs.nodePackages
passthru.updateScript = import ./update.nix { passthru.updateScript = import ./update.nix {
inherit (stdenv) lib; inherit lib;
inherit (src.meta) homepage; inherit (src.meta) homepage;
inherit inherit
pname pname

View File

@ -1,6 +1,6 @@
{stdenvNoCC, git, git-lfs, cacert}: let {lib, stdenvNoCC, git, git-lfs, cacert}: let
urlToName = url: rev: let urlToName = url: rev: let
inherit (stdenvNoCC.lib) removeSuffix splitString last; inherit (lib) removeSuffix splitString last;
base = last (splitString ":" (baseNameOf (removeSuffix "/" url))); base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
matched = builtins.match "(.*).git" base; matched = builtins.match "(.*).git" base;
@ -56,7 +56,7 @@ stdenvNoCC.mkDerivation {
fetcher = ./nix-prefetch-git; # This must be a string to ensure it's called with bash. fetcher = ./nix-prefetch-git; # This must be a string to ensure it's called with bash.
nativeBuildInputs = [ git ] nativeBuildInputs = [ git ]
++ stdenvNoCC.lib.optionals fetchLFS [ git-lfs ]; ++ lib.optionals fetchLFS [ git-lfs ];
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHashMode = "recursive"; outputHashMode = "recursive";
@ -66,7 +66,7 @@ stdenvNoCC.mkDerivation {
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars ++ [ impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
"GIT_PROXY_COMMAND" "SOCKS_SERVER" "GIT_PROXY_COMMAND" "SOCKS_SERVER"
]; ];

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, mercurial }: { lib, stdenvNoCC, mercurial }:
{ name ? null { name ? null
, url , url
, rev ? null , rev ? null
@ -16,7 +16,7 @@ stdenvNoCC.mkDerivation {
builder = ./builder.sh; builder = ./builder.sh;
nativeBuildInputs = [mercurial]; nativeBuildInputs = [mercurial];
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars; impureEnvVars = lib.fetchers.proxyImpureEnvVars;
subrepoClause = if fetchSubrepos then "S" else ""; subrepoClause = if fetchSubrepos then "S" else "";

View File

@ -1,5 +1,5 @@
# You can specify some extra mirrors and a cache DB via options # You can specify some extra mirrors and a cache DB via options
{stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}: {lib, stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
# dbs is a list of strings # dbs is a list of strings
# each is an url for sync # each is an url for sync
@ -19,7 +19,7 @@ stdenvNoCC.mkDerivation {
dbs = defaultDBMirrors ++ dbs; dbs = defaultDBMirrors ++ dbs;
inherit branch cacheDB name selector; inherit branch cacheDB name selector;
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars; impureEnvVars = lib.fetchers.proxyImpureEnvVars;
} }

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, gitRepo, cacert, copyPathsToStore }: { lib, stdenvNoCC, gitRepo, cacert, copyPathsToStore }:
{ name, manifest, rev ? "HEAD", sha256 { name, manifest, rev ? "HEAD", sha256
# Optional parameters: # Optional parameters:
@ -9,7 +9,7 @@
assert repoRepoRev != "" -> repoRepoURL != ""; assert repoRepoRev != "" -> repoRepoURL != "";
assert createMirror -> !useArchive; assert createMirror -> !useArchive;
with stdenvNoCC.lib; with lib;
let let
extraRepoInitFlags = [ extraRepoInitFlags = [

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, runCommand, awscli }: { lib, stdenvNoCC, runCommand, awscli }:
{ s3url { s3url
, name ? builtins.baseNameOf s3url , name ? builtins.baseNameOf s3url
@ -16,7 +16,7 @@ let
AWS_SESSION_TOKEN = session_token; AWS_SESSION_TOKEN = session_token;
}; };
credentialAttrs = stdenvNoCC.lib.optionalAttrs (credentials != null) (mkCredentials credentials); credentialAttrs = lib.optionalAttrs (credentials != null) (mkCredentials credentials);
in runCommand name ({ in runCommand name ({
nativeBuildInputs = [ awscli ]; nativeBuildInputs = [ awscli ];

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, buildPackages { lib, stdenvNoCC, buildPackages
, subversion, glibcLocales, sshSupport ? true, openssh ? null , subversion, glibcLocales, sshSupport ? true, openssh ? null
}: }:
@ -10,7 +10,7 @@
assert sshSupport -> openssh != null; assert sshSupport -> openssh != null;
let let
repoName = with stdenvNoCC.lib; repoName = with lib;
let let
fst = head; fst = head;
snd = l: head (tail l); snd = l: head (tail l);
@ -39,7 +39,7 @@ stdenvNoCC.mkDerivation {
name = name_; name = name_;
builder = ./builder.sh; builder = ./builder.sh;
nativeBuildInputs = [ subversion glibcLocales ] nativeBuildInputs = [ subversion glibcLocales ]
++ stdenvNoCC.lib.optional sshSupport openssh; ++ lib.optional sshSupport openssh;
SVN_SSH = if sshSupport then "${buildPackages.openssh}/bin/ssh" else null; SVN_SSH = if sshSupport then "${buildPackages.openssh}/bin/ssh" else null;
@ -49,6 +49,6 @@ stdenvNoCC.mkDerivation {
inherit url rev ignoreExternals ignoreKeywords; inherit url rev ignoreExternals ignoreKeywords;
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars; impureEnvVars = lib.fetchers.proxyImpureEnvVars;
inherit preferLocalBuild; inherit preferLocalBuild;
} }

View File

@ -83,7 +83,7 @@ in stdenvNoCC.mkDerivation rec {
builder = ./make-initrd.sh; builder = ./make-initrd.sh;
nativeBuildInputs = [ perl cpio ] nativeBuildInputs = [ perl cpio ]
++ stdenvNoCC.lib.optional makeUInitrd ubootTools; ++ lib.optional makeUInitrd ubootTools;
compress = "${_compressorExecutable} ${lib.escapeShellArgs _compressorArgsReal}"; compress = "${_compressorExecutable} ${lib.escapeShellArgs _compressorArgsReal}";

View File

@ -229,26 +229,26 @@ class SPECTemplate(object):
@property @property
def meta(self): def meta(self):
out = ' meta = {\n' out = ' meta = with lib; {\n'
out += ' homepage = ' + self.spec.sourceHeader['url'] + ';\n' out += ' homepage = ' + self.spec.sourceHeader['url'] + ';\n'
out += ' description = "' + self.spec.sourceHeader['summary'] + '";\n' out += ' description = "' + self.spec.sourceHeader['summary'] + '";\n'
out += ' license = stdenv.lib.licenses.' + self.spec.sourceHeader['license'] + ';\n' out += ' license = lib.licenses.' + self.spec.sourceHeader['license'] + ';\n'
out += ' platforms = [ "i686-linux" "x86_64-linux" ];\n' out += ' platforms = [ "i686-linux" "x86_64-linux" ];\n'
out += ' maintainers = with stdenv.lib.maintainers; [ ' + self.maintainer + ' ];\n' out += ' maintainers = with lib.maintainers; [ ' + self.maintainer + ' ];\n'
out += ' };\n' out += ' };\n'
out += '}\n' out += '}\n'
return out return out
def __str__(self): def __str__(self):
head = '{stdenv, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n' head = '{lib, stdenv, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n'
head += 'stdenv.mkDerivation {\n' head += 'stdenv.mkDerivation {\n'
body = [ self.name, self.src, self.patch, self.buildInputs, self.configure, self.build, self.ocamlExtra, self.install, self.meta ] body = [ self.name, self.src, self.patch, self.buildInputs, self.configure, self.build, self.ocamlExtra, self.install, self.meta ]
return head + '\n'.join(body) return head + '\n'.join(body)
def getTemplate(self): def getTemplate(self):
head = '{stdenv, buildRoot, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n' head = '{lib, stdenv, buildRoot, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n'
head += 'let\n' head += 'let\n'
head += ' buildRootInput = (import "${buildRoot}/usr/share/buildroot/buildRootInput.nix") { fetchurl=fetchurl; buildRoot=buildRoot; };\n' head += ' buildRootInput = (import "${buildRoot}/usr/share/buildroot/buildRootInput.nix") { fetchurl=fetchurl; buildRoot=buildRoot; };\n'
head += 'in\n\n' head += 'in\n\n'

View File

@ -1,7 +1,7 @@
# Fetches a chicken egg from henrietta using `chicken-install -r' # Fetches a chicken egg from henrietta using `chicken-install -r'
# See: http://wiki.call-cc.org/chicken-projects/egg-index-4.html # See: http://wiki.call-cc.org/chicken-projects/egg-index-4.html
{ stdenvNoCC, chicken }: { lib, stdenvNoCC, chicken }:
{ name, version, md5 ? "", sha256 ? "" }: { name, version, md5 ? "", sha256 ? "" }:
if md5 != "" then if md5 != "" then
@ -20,6 +20,6 @@ stdenvNoCC.mkDerivation {
eggName = name; eggName = name;
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars; impureEnvVars = lib.fetchers.proxyImpureEnvVars;
} }

View File

@ -1,7 +1,7 @@
# Fetches a chicken egg from henrietta using `chicken-install -r' # Fetches a chicken egg from henrietta using `chicken-install -r'
# See: http://wiki.call-cc.org/chicken-projects/egg-index-5.html # See: http://wiki.call-cc.org/chicken-projects/egg-index-5.html
{ stdenvNoCC, chicken }: { lib, stdenvNoCC, chicken }:
{ name, version, md5 ? "", sha256 ? "" }: { name, version, md5 ? "", sha256 ? "" }:
if md5 != "" then if md5 != "" then
@ -20,6 +20,6 @@ stdenvNoCC.mkDerivation {
eggName = name; eggName = name;
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars; impureEnvVars = lib.fetchers.proxyImpureEnvVars;
} }

View File

@ -245,7 +245,7 @@ stdenv.mkDerivation ({
inherit inherit
(import ../common/extra-target-flags.nix { (import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross; inherit lib stdenv crossStageStatic libcCross threadsCross;
}) })
EXTRA_FLAGS_FOR_TARGET EXTRA_FLAGS_FOR_TARGET
EXTRA_LDFLAGS_FOR_TARGET EXTRA_LDFLAGS_FOR_TARGET

View File

@ -271,7 +271,7 @@ stdenv.mkDerivation ({
inherit inherit
(import ../common/extra-target-flags.nix { (import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross; inherit lib stdenv crossStageStatic libcCross threadsCross;
}) })
EXTRA_FLAGS_FOR_TARGET EXTRA_FLAGS_FOR_TARGET
EXTRA_LDFLAGS_FOR_TARGET EXTRA_LDFLAGS_FOR_TARGET

View File

@ -284,7 +284,7 @@ stdenv.mkDerivation ({
inherit inherit
(import ../common/extra-target-flags.nix { (import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross; inherit lib stdenv crossStageStatic libcCross threadsCross;
}) })
EXTRA_FLAGS_FOR_TARGET EXTRA_FLAGS_FOR_TARGET
EXTRA_LDFLAGS_FOR_TARGET EXTRA_LDFLAGS_FOR_TARGET

View File

@ -303,7 +303,7 @@ stdenv.mkDerivation ({
inherit inherit
(import ../common/extra-target-flags.nix { (import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross; inherit lib stdenv crossStageStatic libcCross threadsCross;
}) })
EXTRA_FLAGS_FOR_TARGET EXTRA_FLAGS_FOR_TARGET
EXTRA_LDFLAGS_FOR_TARGET EXTRA_LDFLAGS_FOR_TARGET

View File

@ -255,7 +255,7 @@ stdenv.mkDerivation ({
inherit inherit
(import ../common/extra-target-flags.nix { (import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross; inherit lib stdenv crossStageStatic libcCross threadsCross;
}) })
EXTRA_FLAGS_FOR_TARGET EXTRA_FLAGS_FOR_TARGET
EXTRA_LDFLAGS_FOR_TARGET EXTRA_LDFLAGS_FOR_TARGET

View File

@ -240,7 +240,7 @@ stdenv.mkDerivation ({
inherit inherit
(import ../common/extra-target-flags.nix { (import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross; inherit lib stdenv crossStageStatic libcCross threadsCross;
}) })
EXTRA_FLAGS_FOR_TARGET EXTRA_FLAGS_FOR_TARGET
EXTRA_LDFLAGS_FOR_TARGET EXTRA_LDFLAGS_FOR_TARGET

View File

@ -259,7 +259,7 @@ stdenv.mkDerivation ({
inherit inherit
(import ../common/extra-target-flags.nix { (import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic langD libcCross threadsCross; inherit lib stdenv crossStageStatic langD libcCross threadsCross;
}) })
EXTRA_FLAGS_FOR_TARGET EXTRA_FLAGS_FOR_TARGET
EXTRA_LDFLAGS_FOR_TARGET EXTRA_LDFLAGS_FOR_TARGET

View File

@ -39,8 +39,7 @@ assert langJava -> lib.versionOlder version "7";
let let
inherit (stdenv) inherit (stdenv)
buildPlatform hostPlatform targetPlatform buildPlatform hostPlatform targetPlatform;
lib;
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem"; crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem";

View File

@ -1,7 +1,7 @@
{ stdenv, crossStageStatic, langD ? false, libcCross, threadsCross }: { lib, stdenv, crossStageStatic, langD ? false, libcCross, threadsCross }:
let let
inherit (stdenv) lib hostPlatform targetPlatform; inherit (stdenv) hostPlatform targetPlatform;
in in
{ {

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, fetchurl, qemu, expect, writeScript, writeScriptBin, ncurses, bash, coreutils }: { lib, stdenvNoCC, fetchurl, qemu, expect, writeScript, writeScriptBin, ncurses, bash, coreutils }:
let let
@ -112,7 +112,7 @@ stdenvNoCC.mkDerivation rec {
done done
''; '';
meta = with stdenvNoCC.lib; { meta = with lib; {
description = "A C/C++ Compiler (binary distribution)"; description = "A C/C++ Compiler (binary distribution)";
homepage = "http://www.openwatcom.org/"; homepage = "http://www.openwatcom.org/";
license = licenses.watcom; license = licenses.watcom;

View File

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, bash, pkg-config, autoconf, cpio, file, which, unzip { stdenv, lib, fetchurl, bash, pkg-config, autoconf, cpio, file, which, unzip
, zip, perl, cups, freetype, alsaLib, libjpeg, giflib, libpng, zlib, lcms2 , zip, perl, cups, freetype, alsaLib, libjpeg, giflib, libpng, zlib, lcms2
, libX11, libICE, libXrender, libXext, libXt, libXtst, libXi, libXinerama , libX11, libICE, libXrender, libXext, libXt, libXtst, libXi, libXinerama
, libXcursor, libXrandr, fontconfig, openjdk11 , libXcursor, libXrandr, fontconfig, openjdk11, fetchpatch
, setJavaClassPath , setJavaClassPath
, headless ? false , headless ? false
, enableJavaFX ? openjfx.meta.available, openjfx , enableJavaFX ? openjfx.meta.available, openjfx
@ -44,6 +44,11 @@ let
url = "https://src.fedoraproject.org/rpms/java-openjdk/raw/06c001c7d87f2e9fe4fedeef2d993bcd5d7afa2a/f/rh1673833-remove_removal_of_wformat_during_test_compilation.patch"; url = "https://src.fedoraproject.org/rpms/java-openjdk/raw/06c001c7d87f2e9fe4fedeef2d993bcd5d7afa2a/f/rh1673833-remove_removal_of_wformat_during_test_compilation.patch";
sha256 = "082lmc30x64x583vqq00c8y0wqih3y4r0mp1c4bqq36l22qv6b6r"; sha256 = "082lmc30x64x583vqq00c8y0wqih3y4r0mp1c4bqq36l22qv6b6r";
}) })
# Fix gnumake 4.3 incompatibility
(fetchpatch {
url = "https://github.com/openjdk/panama-foreign/commit/af5c725b8109ce83fc04ef0f8bf6aaf0b50c0441.patch";
sha256 = "0ja84kih5wkjn58pml53s59qnavb1z92dc88cbgw7vcyqwc1gs0h";
})
] ++ lib.optionals (!headless && enableGnome2) [ ] ++ lib.optionals (!headless && enableGnome2) [
./swing-use-gtk-jdk10.patch ./swing-use-gtk-jdk10.patch
]; ];

View File

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, bash, pkg-config, autoconf, cpio, file, which, unzip { stdenv, lib, fetchurl, bash, pkg-config, autoconf, cpio, file, which, unzip
, zip, perl, cups, freetype, alsaLib, libjpeg, giflib, libpng, zlib, lcms2 , zip, perl, cups, freetype, alsaLib, libjpeg, giflib, libpng, zlib, lcms2
, libX11, libICE, libXrender, libXext, libXt, libXtst, libXi, libXinerama , libX11, libICE, libXrender, libXext, libXt, libXtst, libXi, libXinerama
, libXcursor, libXrandr, fontconfig, openjdk13-bootstrap , libXcursor, libXrandr, fontconfig, openjdk13-bootstrap, fetchpatch
, setJavaClassPath , setJavaClassPath
, headless ? false , headless ? false
, enableJavaFX ? openjfx.meta.available, openjfx , enableJavaFX ? openjfx.meta.available, openjfx
@ -44,6 +44,11 @@ let
url = "https://src.fedoraproject.org/rpms/java-openjdk/raw/06c001c7d87f2e9fe4fedeef2d993bcd5d7afa2a/f/rh1673833-remove_removal_of_wformat_during_test_compilation.patch"; url = "https://src.fedoraproject.org/rpms/java-openjdk/raw/06c001c7d87f2e9fe4fedeef2d993bcd5d7afa2a/f/rh1673833-remove_removal_of_wformat_during_test_compilation.patch";
sha256 = "082lmc30x64x583vqq00c8y0wqih3y4r0mp1c4bqq36l22qv6b6r"; sha256 = "082lmc30x64x583vqq00c8y0wqih3y4r0mp1c4bqq36l22qv6b6r";
}) })
# Fix gnumake 4.3 incompatibility
(fetchpatch {
url = "https://github.com/openjdk/panama-foreign/commit/af5c725b8109ce83fc04ef0f8bf6aaf0b50c0441.patch";
sha256 = "0ja84kih5wkjn58pml53s59qnavb1z92dc88cbgw7vcyqwc1gs0h";
})
] ++ lib.optionals (!headless && enableGnome2) [ ] ++ lib.optionals (!headless && enableGnome2) [
./swing-use-gtk-jdk13.patch ./swing-use-gtk-jdk13.patch
]; ];

View File

@ -65,9 +65,7 @@ let
# Downloaded AWT jars differ by platform. # Downloaded AWT jars differ by platform.
outputHash = { outputHash = {
x86_64-linux = "0hmyr5nnjgwyw3fcwqf0crqg9lny27jfirycg3xmkzbcrwqd6qkw"; x86_64-linux = "0hmyr5nnjgwyw3fcwqf0crqg9lny27jfirycg3xmkzbcrwqd6qkw";
# The build-time dependencies don't currently build for i686, so no i686-linux = "0hx69p2z96p7jbyq4r20jykkb8gx6r8q2cj7m30pldlsw3650bqx";
# reason to fetch this one correctly either...
i686-linux = "0000000000000000000000000000000000000000000000000000";
}.${stdenv.system} or (throw "Unsupported platform"); }.${stdenv.system} or (throw "Unsupported platform");
}; };

View File

@ -1,4 +1,4 @@
{ stdenvNoLibs, buildPackages { lib, stdenvNoLibs, buildPackages
, gcc, glibc , gcc, glibc
, libiberty , libiberty
}: }:
@ -128,7 +128,7 @@ stdenvNoLibs.mkDerivation rec {
"--disable-vtable-verify" "--disable-vtable-verify"
"--with-system-zlib" "--with-system-zlib"
] ++ stdenvNoLibs.lib.optional (stdenvNoLibs.hostPlatform.libc == "glibc") ] ++ lib.optional (stdenvNoLibs.hostPlatform.libc == "glibc")
"--with-glibc-version=${glibc.version}"; "--with-glibc-version=${glibc.version}";
configurePlatforms = [ "build" "host" ]; configurePlatforms = [ "build" "host" ];

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch { lib, stdenv, fetchurl, fetchpatch
, autoreconfHook, libgpgerror, gnupg, pkg-config, glib, pth, libassuan , autoreconfHook, libgpgerror, gnupg, pkg-config, glib, pth, libassuan
, file, which, ncurses , file, which, ncurses
, texinfo , texinfo
@ -8,7 +8,6 @@
}: }:
let let
inherit (stdenv) lib;
inherit (stdenv.hostPlatform) system; inherit (stdenv.hostPlatform) system;
in in

View File

@ -1,8 +1,7 @@
{ stdenv, fetchFromGitHub, cmake, pkg-config, openssl, boost, gmp, procps }: { lib, stdenv, fetchFromGitHub, cmake, pkg-config, openssl, boost, gmp, procps }:
let let
rev = "9e6b19ff15bc19fba5da1707ba18e7f160e5ed07"; rev = "9e6b19ff15bc19fba5da1707ba18e7f160e5ed07";
inherit (stdenv) lib;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "libsnark-pre${version}"; name = "libsnark-pre${version}";
version = lib.substring 0 8 rev; version = lib.substring 0 8 rev;

View File

@ -1,32 +1,39 @@
{ lib, stdenv, fetchurl, gfortran, perl }: { lib, stdenv, fetchFromGitLab, cmake, gfortran, perl }:
let let
version = "4.3.4"; version = "5.1.0";
in stdenv.mkDerivation { in stdenv.mkDerivation {
pname = "libxc"; pname = "libxc";
inherit version; inherit version;
src = fetchurl {
url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz"; src = fetchFromGitLab {
sha256 = "0dw356dfwn2bwjdfwwi4h0kimm69aql2f4yk9f2kk4q7qpfkgvm8"; owner = "libxc";
repo = "libxc";
rev = version;
sha256 = "0qbxh0lfx4cab1fk1qfnx72g4yvs376zqrq74jn224vy32nam2x7";
}; };
buildInputs = [ gfortran ]; buildInputs = [ gfortran ];
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ perl cmake ];
preConfigure = '' preConfigure = ''
patchShebangs ./ patchShebangs ./
''; '';
configureFlags = [ "--enable-shared" ]; cmakeFlags = [ "-DENABLE_FORTRAN=ON" "-DBUILD_SHARED_LIBS=ON" ];
preCheck = ''
export LD_LIBRARY_PATH=$(pwd)
'';
doCheck = true; doCheck = true;
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with lib; { meta = with lib; {
description = "Library of exchange-correlation functionals for density-functional theory"; description = "Library of exchange-correlation functionals for density-functional theory";
homepage = "https://octopus-code.org/wiki/Libxc"; homepage = "https://www.tddft.org/programs/Libxc/";
license = licenses.lgpl3; license = licenses.mpl20;
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ markuskowa ]; maintainers = with maintainers; [ markuskowa ];
}; };

View File

@ -124,7 +124,7 @@ let
# to avoid cyclic dependencies between Qt modules. # to avoid cyclic dependencies between Qt modules.
mkDerivation = mkDerivation =
import ../mkDerivation.nix import ../mkDerivation.nix
{ inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; } { inherit lib; inherit debug; wrapQtAppsHook = null; }
stdenvActual.mkDerivation; stdenvActual.mkDerivation;
} }
{ inherit self srcs patches; }; { inherit self srcs patches; };

View File

@ -123,12 +123,12 @@ let
import ../qtModule.nix import ../qtModule.nix
{ {
inherit perl; inherit perl;
inherit (stdenv) lib; inherit lib;
# Use a variant of mkDerivation that does not include wrapQtApplications # Use a variant of mkDerivation that does not include wrapQtApplications
# to avoid cyclic dependencies between Qt modules. # to avoid cyclic dependencies between Qt modules.
mkDerivation = mkDerivation =
import ../mkDerivation.nix import ../mkDerivation.nix
{ inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; } { inherit lib; inherit debug; wrapQtAppsHook = null; }
stdenvActual.mkDerivation; stdenvActual.mkDerivation;
} }
{ inherit self srcs patches; }; { inherit self srcs patches; };
@ -140,7 +140,7 @@ let
mkDerivationWith = mkDerivationWith =
import ../mkDerivation.nix import ../mkDerivation.nix
{ inherit (stdenv) lib; inherit debug; inherit (self) wrapQtAppsHook; }; { inherit lib; inherit debug; inherit (self) wrapQtAppsHook; };
mkDerivation = mkDerivationWith stdenvActual.mkDerivation; mkDerivation = mkDerivationWith stdenvActual.mkDerivation;

View File

@ -103,12 +103,12 @@ let
import ../qtModule.nix import ../qtModule.nix
{ {
inherit perl; inherit perl;
inherit (stdenv) lib; inherit lib;
# Use a variant of mkDerivation that does not include wrapQtApplications # Use a variant of mkDerivation that does not include wrapQtApplications
# to avoid cyclic dependencies between Qt modules. # to avoid cyclic dependencies between Qt modules.
mkDerivation = mkDerivation =
import ../mkDerivation.nix import ../mkDerivation.nix
{ inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; } { inherit lib; inherit debug; wrapQtAppsHook = null; }
stdenvActual.mkDerivation; stdenvActual.mkDerivation;
} }
{ inherit self srcs patches; }; { inherit self srcs patches; };
@ -120,7 +120,7 @@ let
mkDerivationWith = mkDerivationWith =
import ../mkDerivation.nix import ../mkDerivation.nix
{ inherit (stdenv) lib; inherit debug; inherit (self) wrapQtAppsHook; }; { inherit lib; inherit debug; inherit (self) wrapQtAppsHook; };
mkDerivation = mkDerivationWith stdenvActual.mkDerivation; mkDerivation = mkDerivationWith stdenvActual.mkDerivation;

View File

@ -1,7 +1,7 @@
{ stdenvNoCC, buildPackages, makeRustPlatform }: { lib, stdenvNoCC, buildPackages, makeRustPlatform }:
let let
rpath = stdenvNoCC.lib.makeLibraryPath [ rpath = lib.makeLibraryPath [
buildPackages.stdenv.cc.libc buildPackages.stdenv.cc.libc
"$out" "$out"
]; ];
@ -30,7 +30,7 @@ let
"{}" \; "{}" \;
''; '';
meta.platforms = with stdenvNoCC.lib; platforms.redox ++ platforms.linux; meta.platforms = with lib; platforms.redox ++ platforms.linux;
}; };
redoxRustPlatform = buildPackages.makeRustPlatform { redoxRustPlatform = buildPackages.makeRustPlatform {
@ -68,7 +68,7 @@ redoxRustPlatform.buildRustPackage rec {
cargoSha256 = "1fzz7ba3ga57x1cbdrcfrdwwjr70nh4skrpxp4j2gak2c3scj6rz"; cargoSha256 = "1fzz7ba3ga57x1cbdrcfrdwwjr70nh4skrpxp4j2gak2c3scj6rz";
meta = with stdenvNoCC.lib; { meta = with lib; {
homepage = "https://gitlab.redox-os.org/redox-os/relibc"; homepage = "https://gitlab.redox-os.org/redox-os/relibc";
description = "C Library in Rust for Redox and Linux"; description = "C Library in Rust for Redox and Linux";
license = licenses.mit; license = licenses.mit;

View File

@ -1,4 +1,5 @@
{ stdenv { lib
, stdenv
, callPackage , callPackage
, stdenvNoCC , stdenvNoCC
, fetchurl , fetchurl
@ -135,7 +136,7 @@ in stdenvNoCC.mkDerivation {
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt} ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt}
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt} ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt}
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapacke${shlibExt} ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapacke${shlibExt}
'' + stdenvNoCC.lib.optionalString stdenvNoCC.hostPlatform.isLinux '' '' + lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libblas${shlibExt}".3" ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libblas${shlibExt}".3"
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt}".3" ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt}".3"
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt}".3" ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt}".3"
@ -145,7 +146,7 @@ in stdenvNoCC.mkDerivation {
# fixDarwinDylibName fails for libmkl_cdft_core.dylib because the # fixDarwinDylibName fails for libmkl_cdft_core.dylib because the
# larger updated load commands do not fit. Use install_name_tool # larger updated load commands do not fit. Use install_name_tool
# explicitly and ignore the error. # explicitly and ignore the error.
postFixup = stdenvNoCC.lib.optionalString stdenvNoCC.isDarwin '' postFixup = lib.optionalString stdenvNoCC.isDarwin ''
for f in $out/lib/*.dylib; do for f in $out/lib/*.dylib; do
install_name_tool -id $out/lib/$(basename $f) $f || true install_name_tool -id $out/lib/$(basename $f) $f || true
done done
@ -160,7 +161,7 @@ in stdenvNoCC.mkDerivation {
passthru.tests.pkg-config = callPackage ./test { }; passthru.tests.pkg-config = callPackage ./test { };
meta = with stdenvNoCC.lib; { meta = with lib; {
description = "Intel Math Kernel Library"; description = "Intel Math Kernel Library";
longDescription = '' longDescription = ''
Intel Math Kernel Library (Intel MKL) optimizes code with minimal effort Intel Math Kernel Library (Intel MKL) optimizes code with minimal effort

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, texinfo, texLive, perl}: {lib, stdenv, fetchurl, texinfo, texLive, perl}:
let let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
@ -31,11 +31,11 @@ stdenv.mkDerivation {
cp -r doc/* "$out"/share/doc/asdf/ cp -r doc/* "$out"/share/doc/asdf/
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop} ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
''; '';
meta = { meta = with lib; {
inherit (s) version; inherit (s) version;
description = "Standard software-system definition library for Common Lisp"; description = "Standard software-system definition library for Common Lisp";
license = stdenv.lib.licenses.mit ; license = licenses.mit;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, texinfo, texLive, perl}: {lib, stdenv, fetchurl, texinfo, texLive, perl}:
let let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
@ -30,11 +30,11 @@ stdenv.mkDerivation {
cp -r doc/* "$out"/share/doc/asdf/ cp -r doc/* "$out"/share/doc/asdf/
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop} ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
''; '';
meta = { meta = with lib; {
inherit (s) version; inherit (s) version;
description = "Standard software-system definition library for Common Lisp"; description = "Standard software-system definition library for Common Lisp";
license = stdenv.lib.licenses.mit ; license = licenses.mit ;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [maintainers.raskin];
platforms = stdenv.lib.platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, texinfo, texLive, perl}: {lib, stdenv, fetchurl, texinfo, texLive, perl}:
let let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
@ -31,11 +31,11 @@ stdenv.mkDerivation {
cp -r doc/* "$out"/share/doc/asdf/ cp -r doc/* "$out"/share/doc/asdf/
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop} ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
''; '';
meta = { meta = with lib; {
inherit (s) version; inherit (s) version;
description = "Standard software-system definition library for Common Lisp"; description = "Standard software-system definition library for Common Lisp";
license = stdenv.lib.licenses.mit ; license = licenses.mit ;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [maintainers.raskin];
platforms = stdenv.lib.platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -1,4 +1,4 @@
{stdenv, asdf, which, bash, lisp ? null}: {lib, stdenv, asdf, which, bash, lisp ? null}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "cl-wrapper-script"; name = "cl-wrapper-script";
@ -52,6 +52,6 @@ stdenv.mkDerivation {
meta = { meta = {
description = "Script used to wrap Common Lisp implementations"; description = "Script used to wrap Common Lisp implementations";
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
}; };
} }

View File

@ -1,4 +1,4 @@
args @ {stdenv, clwrapper, baseName, packageName ? baseName args @ {lib, stdenv, clwrapper, baseName, packageName ? baseName
, parasites ? [] , parasites ? []
, buildSystems ? ([packageName] ++ parasites) , buildSystems ? ([packageName] ++ parasites)
, version ? "latest" , version ? "latest"
@ -89,7 +89,7 @@ basePackage = {
env -i \ env -i \
NIX_LISP="$NIX_LISP" \ NIX_LISP="$NIX_LISP" \
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(progn NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(progn
${stdenv.lib.concatMapStrings (system: '' ${lib.concatMapStrings (system: ''
(asdf:compile-system :${system}) (asdf:compile-system :${system})
(asdf:load-system :${system}) (asdf:load-system :${system})
(asdf:operate (quote asdf::compile-bundle-op) :${system}) (asdf:operate (quote asdf::compile-bundle-op) :${system})

View File

@ -1,6 +1,6 @@
{stdenv, clwrapper, pkgs, sbcl, coreutils, nix, asdf}: {lib, stdenv, clwrapper, pkgs, sbcl, coreutils, nix, asdf}:
let lispPackages = rec { let lispPackages = rec {
inherit pkgs clwrapper stdenv; inherit lib pkgs clwrapper stdenv;
nixLib = pkgs.lib; nixLib = pkgs.lib;
callPackage = nixLib.callPackageWith lispPackages; callPackage = nixLib.callPackageWith lispPackages;

View File

@ -1,6 +1,6 @@
{stdenv, fetchurl, pkgs, clwrapper}: {lib, stdenv, fetchurl, pkgs, clwrapper}:
let quicklisp-to-nix-packages = rec { let quicklisp-to-nix-packages = rec {
inherit stdenv fetchurl clwrapper pkgs quicklisp-to-nix-packages; inherit lib stdenv fetchurl clwrapper pkgs quicklisp-to-nix-packages;
callPackage = pkgs.lib.callPackageWith quicklisp-to-nix-packages; callPackage = pkgs.lib.callPackageWith quicklisp-to-nix-packages;
buildLispPackage = callPackage ./define-package.nix; buildLispPackage = callPackage ./define-package.nix;

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, fetchzip }: { lib, stdenvNoCC, fetchzip }:
let let
mspgccVersion = "6_1_1_0"; mspgccVersion = "6_1_1_0";
@ -19,7 +19,7 @@ in stdenvNoCC.mkDerivation rec {
touch $out/lib/lib touch $out/lib/lib
''; '';
meta = with stdenvNoCC.lib; { meta = with lib; {
description = '' description = ''
Development headers and linker scripts for TI MSP430 microcontrollers Development headers and linker scripts for TI MSP430 microcontrollers
''; '';

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation ({
packageBaseDir=$out/libexec/android-sdk/${package.path} packageBaseDir=$out/libexec/android-sdk/${package.path}
mkdir -p $packageBaseDir mkdir -p $packageBaseDir
cd $packageBaseDir cd $packageBaseDir
cp -av $sourceRoot/* . cp -a $sourceRoot/* .
${patchInstructions} ${patchInstructions}
''; '';

View File

@ -17,7 +17,7 @@ let
buildInputs = [ pkgs.makeWrapper ]; buildInputs = [ pkgs.makeWrapper ];
postInstall = '' postInstall = ''
for prog in bower2nix fetch-bower; do for prog in bower2nix fetch-bower; do
wrapProgram "$out/bin/$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.git pkgs.nix ]} wrapProgram "$out/bin/$prog" --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.git pkgs.nix ]}
done done
''; '';
}; };
@ -91,7 +91,7 @@ let
makam = super.makam.override { makam = super.makam.override {
buildInputs = [ pkgs.nodejs pkgs.makeWrapper ]; buildInputs = [ pkgs.nodejs pkgs.makeWrapper ];
postFixup = '' postFixup = ''
wrapProgram "$out/bin/makam" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.nodejs ]} wrapProgram "$out/bin/makam" --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.nodejs ]}
${ ${
if stdenv.isLinux if stdenv.isLinux
then "patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \"$out/lib/node_modules/makam/makam-bin-linux64\"" then "patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \"$out/lib/node_modules/makam/makam-bin-linux64\""
@ -138,7 +138,7 @@ let
node2nix = super.node2nix.override { node2nix = super.node2nix.override {
buildInputs = [ pkgs.makeWrapper ]; buildInputs = [ pkgs.makeWrapper ];
postInstall = '' postInstall = ''
wrapProgram "$out/bin/node2nix" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.nix ]} wrapProgram "$out/bin/node2nix" --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.nix ]}
''; '';
}; };
@ -168,7 +168,7 @@ let
''; '';
postInstall = let postInstall = let
pnpmLibPath = stdenv.lib.makeBinPath [ pnpmLibPath = pkgs.lib.makeBinPath [
nodejs.passthru.python nodejs.passthru.python
nodejs nodejs
]; ];
@ -185,7 +185,7 @@ let
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = '' postInstall = ''
wrapProgram "$out/bin/pulp" --suffix PATH : ${stdenv.lib.makeBinPath [ wrapProgram "$out/bin/pulp" --suffix PATH : ${pkgs.lib.makeBinPath [
pkgs.purescript pkgs.purescript
]} ]}
''; '';
@ -220,7 +220,7 @@ let
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = '' postInstall = ''
wrapProgram "$out/bin/typescript-language-server" \ wrapProgram "$out/bin/typescript-language-server" \
--prefix PATH : ${stdenv.lib.makeBinPath [ self.typescript ]} --prefix PATH : ${pkgs.lib.makeBinPath [ self.typescript ]}
''; '';
}; };

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, nose
, scikitlearn
, scipy
, numba
, llvmlite
, joblib
}:
buildPythonPackage rec {
pname = "pynndescent";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "74a05a54d13573a38878781d44812ac6df97d8762a56f9bb5dd87a99911820fe";
};
patches = [
# fixes tests, included in 0.5.2
(fetchpatch {
url = "https://github.com/lmcinnes/pynndescent/commit/ef5d8c3c3bfe976063b6621e3e0734c0c22d813b.patch";
sha256 = "sha256-49n3kevs3wpzd4FfZVKmNpF2o1V8pJs4KOx8zCAhR3s=";
})
];
checkInputs = [
nose
];
propagatedBuildInputs = [
scikitlearn
scipy
numba
llvmlite
joblib
];
checkPhase = ''
nosetests
'';
meta = with lib; {
description = "Nearest Neighbor Descent";
homepage = "https://github.com/lmcinnes/pynndescent";
license = licenses.bsd2;
maintainers = [ maintainers.mic92 ];
};
}

View File

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, cython
}:
buildPythonPackage rec {
pname = "pyworld";
version = "0.2.12";
src = fetchPypi {
inherit pname version;
sha256 = "896c910696975855578d855f490f94d7a57119e0a75f7f15e11fdf58ba891627";
};
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
numpy
];
pythonImportsCheck = [ "pyworld" ];
meta = with lib; {
description = "PyWorld is a Python wrapper for WORLD vocoder";
homepage = https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder;
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}

View File

@ -6,22 +6,25 @@
, scikitlearn , scikitlearn
, scipy , scipy
, numba , numba
, pynndescent
, tensorflow
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "umap-learn"; pname = "umap-learn";
version = "0.4.5"; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lmcinnes"; owner = "lmcinnes";
repo = "umap"; repo = "umap";
rev = version; rev = version;
sha256 = "080by8h4rxr5ijx8vp8kn952chiqz029j26c04k4js4g9s7201bq"; sha256 = "sha256-2Z5RDi4bz8hh8zMwkcCQY9NrGaVd1DJEBOmrCl2oSvM=";
}; };
checkInputs = [ checkInputs = [
nose nose
tensorflow
pytestCheckHook pytestCheckHook
]; ];
@ -30,8 +33,13 @@ buildPythonPackage rec {
scikitlearn scikitlearn
scipy scipy
numba numba
pynndescent
]; ];
preCheck = ''
export HOME=$TMPDIR
'';
disabledTests = [ disabledTests = [
# Plot functionality requires additional packages. # Plot functionality requires additional packages.
# These test also fail with 'RuntimeError: cannot cache function' error. # These test also fail with 'RuntimeError: cannot cache function' error.

View File

@ -6,11 +6,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "wasabi"; pname = "wasabi";
version = "0.8.0"; version = "0.8.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "75fec6db6193c8615d7f398ae4aa2c4ad294e6e3e81c6a6dbbbd3864ee2223c3"; sha256 = "6e5228a51f5550844ef5080e74759e7ecb6e344241989d018686ba968f0b4f5a";
}; };
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];

View File

@ -1,4 +1,4 @@
{ fetchgit, pkg-config, gettext, runCommand, makeWrapper { lib, fetchgit, pkg-config, gettext, runCommand, makeWrapper
, elfutils, kernel, gnumake, python2, python2Packages , elfutils, kernel, gnumake, python2, python2Packages
}: }:
@ -10,7 +10,6 @@ let
version = "4.1"; version = "4.1";
inherit (kernel) stdenv; inherit (kernel) stdenv;
inherit (stdenv) lib;
## stap binaries ## stap binaries
stapBuild = stdenv.mkDerivation { stapBuild = stdenv.mkDerivation {

View File

@ -132,7 +132,7 @@ in
passthru.updateScript = import ./update.nix { passthru.updateScript = import ./update.nix {
inherit writeScript coreutils gnugrep jq curl common-updater-scripts gnupg nix runtimeShell; inherit writeScript coreutils gnugrep jq curl common-updater-scripts gnupg nix runtimeShell;
inherit (stdenv) lib; inherit lib;
inherit majorVersion; inherit majorVersion;
}; };

View File

@ -2,56 +2,56 @@
"x86_64-linux": { "x86_64-linux": {
"alpha": { "alpha": {
"experimental": { "experimental": {
"name": "factorio_alpha_x64-1.1.16.tar.xz", "name": "factorio_alpha_x64-1.1.19.tar.xz",
"needsAuth": true, "needsAuth": true,
"sha256": "000n19mm7xc1qvc93kakvayjd0j749hv5nrdmsp7vdixcd773vjn", "sha256": "1ip855iaw2pzgijpnp7bazj7qm3zqr2599xzaf7wx8gcdviq1k5r",
"tarDirectory": "x64", "tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.1.16/alpha/linux64", "url": "https://factorio.com/get-download/1.1.19/alpha/linux64",
"version": "1.1.16" "version": "1.1.19"
}, },
"stable": { "stable": {
"name": "factorio_alpha_x64-1.0.0.tar.xz", "name": "factorio_alpha_x64-1.1.19.tar.xz",
"needsAuth": true, "needsAuth": true,
"sha256": "0zixscff0svpb0yg8nzczp2z4filqqxi1k0z0nrpzn2hhzhf1464", "sha256": "1ip855iaw2pzgijpnp7bazj7qm3zqr2599xzaf7wx8gcdviq1k5r",
"tarDirectory": "x64", "tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.0.0/alpha/linux64", "url": "https://factorio.com/get-download/1.1.19/alpha/linux64",
"version": "1.0.0" "version": "1.1.19"
} }
}, },
"demo": { "demo": {
"experimental": { "experimental": {
"name": "factorio_demo_x64-1.1.16.tar.xz", "name": "factorio_demo_x64-1.1.19.tar.xz",
"needsAuth": false, "needsAuth": false,
"sha256": "11nkpx8f3a30i06q7iqds12fiy1q67h64vh72y8x5l4mjg16j1js", "sha256": "1p9avwkdqpaw9insji9v711rylqn9kxg0gzd8s7hdrmci3ah0ifr",
"tarDirectory": "x64", "tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.1.16/demo/linux64", "url": "https://factorio.com/get-download/1.1.19/demo/linux64",
"version": "1.1.16" "version": "1.1.19"
}, },
"stable": { "stable": {
"name": "factorio_demo_x64-1.0.0.tar.xz", "name": "factorio_demo_x64-1.1.19.tar.xz",
"needsAuth": false, "needsAuth": false,
"sha256": "0h9cqbp143w47zcl4qg4skns4cngq0k40s5jwbk0wi5asjz8whqn", "sha256": "1p9avwkdqpaw9insji9v711rylqn9kxg0gzd8s7hdrmci3ah0ifr",
"tarDirectory": "x64", "tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.0.0/demo/linux64", "url": "https://factorio.com/get-download/1.1.19/demo/linux64",
"version": "1.0.0" "version": "1.1.19"
} }
}, },
"headless": { "headless": {
"experimental": { "experimental": {
"name": "factorio_headless_x64-1.1.16.tar.xz", "name": "factorio_headless_x64-1.1.19.tar.xz",
"needsAuth": false, "needsAuth": false,
"sha256": "02w92sgw4i3k1zywdg30mkr7nfylynsdn7sz5jzslyp0mkglrixi", "sha256": "0w0ir1dzx39vq1w09ikgw956q1ilq6n0cyi50arjhgcqcg44w1ks",
"tarDirectory": "x64", "tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.1.16/headless/linux64", "url": "https://factorio.com/get-download/1.1.19/headless/linux64",
"version": "1.1.16" "version": "1.1.19"
}, },
"stable": { "stable": {
"name": "factorio_headless_x64-1.0.0.tar.xz", "name": "factorio_headless_x64-1.1.19.tar.xz",
"needsAuth": false, "needsAuth": false,
"sha256": "0r0lplns8nxna2viv8qyx9mp4cckdvx6k20w2g2fwnj3jjmf3nc1", "sha256": "0w0ir1dzx39vq1w09ikgw956q1ilq6n0cyi50arjhgcqcg44w1ks",
"tarDirectory": "x64", "tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.0.0/headless/linux64", "url": "https://factorio.com/get-download/1.1.19/headless/linux64",
"version": "1.0.0" "version": "1.1.19"
} }
} }
} }

View File

@ -1,8 +1,7 @@
{ stdenv, writeScript, fetchurl, requireFile, unzip, clang, mono, which, { lib, stdenv, writeScript, fetchurl, requireFile, unzip, clang, mono, which,
xorg, xdg-user-dirs }: xorg, xdg-user-dirs }:
let let
inherit (stdenv) lib;
deps = import ./cdn-deps.nix { inherit fetchurl; }; deps = import ./cdn-deps.nix { inherit fetchurl; };
linkDeps = writeScript "link-deps.sh" (lib.concatMapStringsSep "\n" (hash: linkDeps = writeScript "link-deps.sh" (lib.concatMapStringsSep "\n" (hash:
let prefix = lib.concatStrings (lib.take 2 (lib.stringToCharacters hash)); let prefix = lib.concatStrings (lib.take 2 (lib.stringToCharacters hash));

View File

@ -1,8 +1,8 @@
{ lib, fetchFromGitHub, buildLinux, linux_zen, ... } @ args: { lib, fetchFromGitHub, buildLinux, linux_zen, ... } @ args:
let let
version = "5.10.9"; version = "5.10.10";
suffix = "lqx1"; suffix = "lqx2";
in in
buildLinux (args // { buildLinux (args // {
@ -14,7 +14,7 @@ buildLinux (args // {
owner = "zen-kernel"; owner = "zen-kernel";
repo = "zen-kernel"; repo = "zen-kernel";
rev = "v${version}-${suffix}"; rev = "v${version}-${suffix}";
sha256 = "1j0rz4j1br7kzg9zb5l2xz60ccr4iwjndxq3f4gml8s3fb4cpp6f"; sha256 = "1cjgx9qjfkiaalqkcdmibsrq2frwd621rwcg6w05ms4w9lnwi3af";
}; };
extraMeta = { extraMeta = {

View File

@ -1,7 +1,7 @@
{ lib, fetchFromGitHub, buildLinux, ... } @ args: { lib, fetchFromGitHub, buildLinux, ... } @ args:
let let
version = "5.10.9"; version = "5.10.10";
suffix = "zen1"; suffix = "zen1";
in in
@ -14,7 +14,7 @@ buildLinux (args // {
owner = "zen-kernel"; owner = "zen-kernel";
repo = "zen-kernel"; repo = "zen-kernel";
rev = "v${version}-${suffix}"; rev = "v${version}-${suffix}";
sha256 = "0p7w2ib8aac0cx16fksr8870kmijw86hbzdkjsq1ww07ifnb4qir"; sha256 = "0jsi2q8k1w5zs5l6z1brm2mxpl9arv6n6linc8yj6xc75nydw6w4";
}; };
extraMeta = { extraMeta = {

View File

@ -1,7 +1,6 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests }: { lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
let let
inherit (stdenv) lib;
baseVersion = "0.3.1"; baseVersion = "0.3.1";
commit = "9ba85274dcc21bf8132cbe3b3dccfcb4aab57d9f"; commit = "9ba85274dcc21bf8132cbe3b3dccfcb4aab57d9f";
in in

View File

@ -52,7 +52,7 @@ in rec {
}; };
unifi6 = generic { unifi6 = generic {
version = "6.0.43"; version = "6.0.45";
sha256 = "1d9pw4f20pr4jb1xb43p7ycafv13ld1h40r05qg82029ml1s7jky"; sha256 = "1mph22x2p26q76gh6s714xwsvc03cciy4gx00jv4vhcm28p6nlxy";
}; };
} }

View File

@ -41,15 +41,15 @@ let
in in
{ {
varnish60 = common { varnish60 = common {
version = "6.0.5"; version = "6.0.7";
sha256 = "11aw202s7zdp5qp66hii5nhgm2jk0d86pila7gqrnjgc7x8fs8a0"; sha256 = "0njs6xpc30nc4chjdm4d4g63bigbxhi4dc46f4az3qcz51r8zl2a";
}; };
varnish62 = common { varnish62 = common {
version = "6.2.2"; version = "6.2.3";
sha256 = "10s3qdvb95pkwp3wxndrigb892h0109yqr8dw4smrhfi0knhnfk5"; sha256 = "02b6pqh5j1d4n362n42q42bfjzjrngd6x49b13q7wzsy6igd1jsy";
}; };
varnish63 = common { varnish63 = common {
version = "6.3.1"; version = "6.3.2";
sha256 = "0xa14pd68zpi5hxcax3arl14rcmh5d1cdwa8gv4l5f23mmynr8ni"; sha256 = "1f5ahzdh3am6fij5jhiybv3knwl11rhc5r3ig1ybzw55ai7788q8";
}; };
} }

View File

@ -1,5 +1,5 @@
{ abiCompat ? null, { abiCompat ? null,
stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages, lib, stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages,
automake, autoconf, gettext, libiconv, libtool, intltool, automake, autoconf, gettext, libiconv, libtool, intltool,
freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge, freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge,
libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm,
@ -9,7 +9,7 @@
}: }:
let let
inherit (stdenv) lib isDarwin; inherit (stdenv) isDarwin;
inherit (lib) overrideDerivation; inherit (lib) overrideDerivation;
malloc0ReturnsNullCrossFlag = lib.optional malloc0ReturnsNullCrossFlag = lib.optional

View File

@ -110,7 +110,7 @@ rec {
*/ */
replaceMaintainersField = stdenv: pkgs: maintainers: stdenv // replaceMaintainersField = stdenv: pkgs: maintainers: stdenv //
{ mkDerivation = args: { mkDerivation = args:
stdenv.lib.recursiveUpdate pkgs.lib.recursiveUpdate
(stdenv.mkDerivation args) (stdenv.mkDerivation args)
{ meta.maintainers = maintainers; }; { meta.maintainers = maintainers; };
}; };

View File

@ -1,42 +1,13 @@
{ lib { lib
, python3Packages , python3Packages
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, python3 , python3
}: }:
# # USAGE:
# Tested in the following setup: # $ tts-server --list_models
# # # pick your favorite vocoder/tts model
# TTS model: # $ tts-server --model_name tts_models/en/ljspeech/glow-tts --vocoder_name vocoder_models/universal/libri-tts/fullband-melgan
# Tacotron2 DDC
# https://drive.google.com/drive/folders/1Y_0PcB7W6apQChXtbt6v3fAiNwVf4ER5
# Vocoder model:
# Multi-Band MelGAN
# https://drive.google.com/drive/folders/1XeRT0q4zm5gjERJqwmX5w84pMrD00cKD
#
# Arrange /tmp/tts like this:
# scale_stats.npy
# tts
# tts/checkpoint_130000.pth.tar
# tts/checkpoint_130000_tf.pkl
# tts/checkpoint_130000_tf_2.3rc0.tflite
# tts/config.json
# tts/scale_stats.npy
# vocoder
# vocoder/checkpoint_1450000.pth.tar
# vocoder/checkpoint_2750000_tf.pkl
# vocoder/checkpoint_2750000_tf_v2.3rc.tflite
# vocoder/config.json
# vocoder/scale_stats.npy
#
# Start like this:
# cd /tmp/tts
# tts-server \
# --vocoder_config ./tts/vocoder/config.json \
# --vocoder_checkpoint ./tts/vocoder/checkpoint_1450000.pth.tar \
# --tts_config ./tts/config.json \
# --tts_checkpoint ./tts/checkpoint_130000.pth.tar
# #
# For now, for deployment check the systemd unit in the pull request: # For now, for deployment check the systemd unit in the pull request:
# https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136 # https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
@ -47,35 +18,31 @@ python3Packages.buildPythonApplication rec {
# until https://github.com/mozilla/TTS/issues/424 is resolved # until https://github.com/mozilla/TTS/issues/424 is resolved
# we treat released models as released versions: # we treat released models as released versions:
# https://github.com/mozilla/TTS/wiki/Released-Models # https://github.com/mozilla/TTS/wiki/Released-Models
version = "unstable-2020-06-17"; version = "0.0.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mozilla"; owner = "mozilla";
repo = "TTS"; repo = "TTS";
rev = "72a6ac54c8cfaa407fc64b660248c6a788bdd381"; rev = "df5899daf4ba4ec89544edf94f9c2e105c544461";
sha256 = "1wvs264if9n5xzwi7ryxvwj1j513szp6sfj6n587xk1fphi0921f"; sha256 = "sha256-lklG8DqG04LKJY93z2axeYhW8gtpbRG41o9ow2gJjuA=";
}; };
patches = [
(fetchpatch {
url = "https://github.com/mozilla/TTS/commit/36fee428b9f3f4ec1914b090a2ec9d785314d9aa.patch";
sha256 = "sha256-pP0NxiyrsvQ0A7GEleTdT87XO08o7WxPEpb6Bmj66dc=";
})
];
preBuild = '' preBuild = ''
# numba jit tries to write to its cache directory # numba jit tries to write to its cache directory
export HOME=$TMPDIR export HOME=$TMPDIR
sed -i -e 's!tensorflow==.*!tensorflow!' requirements.txt # we only support pytorch models right now
sed -i -e '/tensorflow/d' requirements.txt
sed -i -e 's!librosa==[^"]*!librosa!' requirements.txt setup.py sed -i -e 's!librosa==[^"]*!librosa!' requirements.txt setup.py
sed -i -e 's!unidecode==[^"]*!unidecode!' requirements.txt setup.py sed -i -e 's!unidecode==[^"]*!unidecode!' requirements.txt setup.py
sed -i -e 's!bokeh==[^"]*!bokeh!' requirements.txt setup.py sed -i -e 's!bokeh==[^"]*!bokeh!' requirements.txt setup.py
sed -i -e 's!numba==[^"]*!numba!' requirements.txt setup.py sed -i -e 's!numba==[^"]*!numba!' requirements.txt setup.py
# Not required for building/installation but for their development/ci workflow # Not required for building/installation but for their development/ci workflow
sed -i -e '/pylint/d' requirements.txt setup.py sed -i -e '/pylint/d' requirements.txt
sed -i -e '/cardboardlint/d' requirements.txt setup.py sed -i -e '/cardboardlint/d' requirements.txt setup.py
''; '';
nativeBuildInputs = [ python3Packages.cython ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
matplotlib matplotlib
@ -88,17 +55,23 @@ python3Packages.buildPythonApplication rec {
tqdm tqdm
librosa librosa
unidecode unidecode
umap-learn
phonemizer phonemizer
tensorboardx tensorboardx
fuzzywuzzy fuzzywuzzy
tensorflow_2
inflect inflect
gdown gdown
pysbd pysbd
pyworld
]; ];
postInstall = '' postInstall = ''
cp -r TTS/server/templates/ $out/${python3.sitePackages}/TTS/server cp -r TTS/server/templates/ $out/${python3.sitePackages}/TTS/server
# cython modules are not installed for some reasons
(
cd TTS/tts/layers/glow_tts/monotonic_align
${python3Packages.python.interpreter} setup.py install --prefix=$out
)
''; '';
checkInputs = with python3Packages; [ pytestCheckHook ]; checkInputs = with python3Packages; [ pytestCheckHook ];
@ -114,6 +87,18 @@ python3Packages.buildPythonApplication rec {
"test_parametrized_gan_dataset" "test_parametrized_gan_dataset"
]; ];
preCheck = ''
# use the installed TTS in $PYTHONPATH instead of the one from source to also have cython modules.
mv TTS{,.old}
'';
pytestFlagsArray = [
# requires tensorflow
"--ignore=tests/test_tacotron2_tf_model.py"
"--ignore=tests/test_vocoder_tf_melgan_generator.py"
"--ignore=tests/test_vocoder_tf_pqmf.py"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/mozilla/TTS"; homepage = "https://github.com/mozilla/TTS";
description = "Deep learning for Text to Speech"; description = "Deep learning for Text to Speech";

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkg-config, gtk3, epoxy, wayland, wrapGAppsHook { lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, gtk3, epoxy, wayland, wrapGAppsHook
, fetchpatch , fetchpatch
}: }:
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
}) })
]; ];
meta = let inherit (stdenv) lib; in { meta = with lib; {
description = "A graphical application for configuring displays in Wayland compositors"; description = "A graphical application for configuring displays in Wayland compositors";
homepage = "https://github.com/cyclopsian/wdisplays"; homepage = "https://github.com/cyclopsian/wdisplays";
maintainers = with lib.maintainers; [ lheckemann ma27 ]; maintainers = with lib.maintainers; [ lheckemann ma27 ];

View File

@ -3,7 +3,6 @@
, gettext, vim, bc, screen }: , gettext, vim, bc, screen }:
let let
inherit (stdenv) lib;
pythonEnv = python3.withPackages (ps: with ps; [ snack ]); pythonEnv = python3.withPackages (ps: with ps; [ snack ]);
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@ -5,7 +5,7 @@
stdenv_32bit.mkDerivation rec { stdenv_32bit.mkDerivation rec {
name = "loadlibrary-${version}"; name = "loadlibrary-${version}";
version = "20170525-${stdenv_32bit.lib.strings.substring 0 7 rev}"; version = "20170525-${lib.strings.substring 0 7 rev}";
rev = "721b084c088d779075405b7f20c77c2578e2a961"; rev = "721b084c088d779075405b7f20c77c2578e2a961";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev; inherit rev;

View File

@ -4,7 +4,6 @@
, libXdamage, expat }: , libXdamage, expat }:
let let
inherit (stdenv) lib;
LD_LIBRARY_PATH = lib.makeLibraryPath LD_LIBRARY_PATH = lib.makeLibraryPath
[ glib gtk2 gdk-pixbuf alsaLib nss nspr GConf cups libgcrypt dbus libXdamage expat ]; [ glib gtk2 gdk-pixbuf alsaLib nss nspr GConf cups libgcrypt dbus libXdamage expat ];
in in

View File

@ -1,4 +1,5 @@
{ stdenv { lib
, stdenv
, fetchurl , fetchurl
, wrapQtAppsHook , wrapQtAppsHook
, pcsclite , pcsclite
@ -16,8 +17,6 @@
, yubikey-personalization , yubikey-personalization
}: }:
let inherit (stdenv) lib; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "yubikey-manager-qt"; pname = "yubikey-manager-qt";
version = "1.1.5"; version = "1.1.5";

View File

@ -1,4 +1,4 @@
{ stdenv, skawarePackages { lib, stdenv, skawarePackages
# Whether to build the TLS/SSL tools and what library to use # Whether to build the TLS/SSL tools and what library to use
# acceptable values: "libressl", false # acceptable values: "libressl", false
@ -8,7 +8,6 @@
with skawarePackages; with skawarePackages;
let let
inherit (stdenv) lib;
sslSupportEnabled = sslSupport != false; sslSupportEnabled = sslSupport != false;
sslLibs = { sslLibs = {
libressl = libressl; libressl = libressl;

View File

@ -79,7 +79,9 @@ let
# lsof must be in PATH for proper operation # lsof must be in PATH for proper operation
wrapProgram $out/bin/Enpass \ wrapProgram $out/bin/Enpass \
--set LD_LIBRARY_PATH "${libPath}" \ --set LD_LIBRARY_PATH "${libPath}" \
--prefix PATH : ${lsof}/bin --prefix PATH : ${lsof}/bin \
--unset QML2_IMPORT_PATH \
--unset QT_PLUGIN_PATH
''; '';
}; };
updater = { updater = {

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "masscan"; pname = "masscan";
version = "1.3.0"; version = "1.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "robertdavidgraham"; owner = "robertdavidgraham";
repo = "masscan"; repo = "masscan";
rev = version; rev = version;
sha256 = "04nlnficybgxa16kq9fwrrfjsbyiaps4mikfqgdr206fkqk9i05y"; sha256 = "sha256-gH0zOf2kl6cqws1nB3QPtaAjpvNAgbawXRx77bqJTIc=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
@ -35,7 +35,8 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Fast scan of the Internet"; description = "Fast scan of the Internet";
homepage = "https://github.com/robertdavidgraham/masscan"; homepage = "https://github.com/robertdavidgraham/masscan";
license = licenses.agpl3; changelog = "https://github.com/robertdavidgraham/masscan/releases/tag/${version}";
license = licenses.agpl3Only;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ rnhmjoj ]; maintainers = with maintainers; [ rnhmjoj ];
}; };

View File

@ -1,4 +1,4 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5 { lib, stdenv, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
, readline , readline
, hardwarePlatform ? "PM3RDV4" , hardwarePlatform ? "PM3RDV4"
@ -29,7 +29,7 @@ mkDerivation rec {
install -Dt $out/firmware bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf install -Dt $out/firmware bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "Client for proxmark3, powerful general purpose RFID tool"; description = "Client for proxmark3, powerful general purpose RFID tool";
homepage = "https://rfidresearchgroup.com/"; homepage = "https://rfidresearchgroup.com/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;

View File

@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
passthru = { passthru = {
tests.tor = nixosTests.tor; tests.tor = nixosTests.tor;
updateScript = import ./update.nix { updateScript = import ./update.nix {
inherit (stdenv) lib; inherit lib;
inherit inherit
writeScript writeScript
common-updater-scripts common-updater-scripts

View File

@ -10177,6 +10177,7 @@ in
headless = true; headless = true;
inherit (gnome2) GConf gnome_vfs; inherit (gnome2) GConf gnome_vfs;
openjdk13-bootstrap = callPackage ../development/compilers/openjdk/12.nix { openjdk13-bootstrap = callPackage ../development/compilers/openjdk/12.nix {
stdenv = gcc8Stdenv; /* build segfaults with gcc9 or newer, so use gcc8 like Debian does */
openjfx = openjfx11; /* need this despite next line :-( */ openjfx = openjfx11; /* need this despite next line :-( */
enableJavaFX = false; enableJavaFX = false;
headless = true; headless = true;
@ -25270,7 +25271,7 @@ in
}).overrideAttrs (oldAttrs: rec { }).overrideAttrs (oldAttrs: rec {
pname = "vim-darwin"; pname = "vim-darwin";
meta = { meta = {
platforms = stdenv.lib.platforms.darwin; platforms = lib.platforms.darwin;
}; };
}); });

View File

@ -4867,6 +4867,8 @@ in {
pkuseg = callPackage ../development/python-modules/pkuseg { }; pkuseg = callPackage ../development/python-modules/pkuseg { };
pynndescent = callPackage ../development/python-modules/pynndescent { };
pysbd = callPackage ../development/python-modules/pysbd { }; pysbd = callPackage ../development/python-modules/pysbd { };
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { }; python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
@ -6505,6 +6507,8 @@ in {
}); });
in if isPy3k then pyxattr' else pyxattr_2; in if isPy3k then pyxattr' else pyxattr_2;
pyworld = callPackage ../development/python-modules/pyworld { };
pyx = callPackage ../development/python-modules/pyx { }; pyx = callPackage ../development/python-modules/pyx { };
pyxdg = callPackage ../development/python-modules/pyxdg { }; pyxdg = callPackage ../development/python-modules/pyxdg { };