Merge staging into staging-next
This commit is contained in:
commit
a58abe2857
@ -7,8 +7,9 @@
|
|||||||
#### Overview
|
#### Overview
|
||||||
|
|
||||||
Several versions of the Python interpreter are available on Nix, as well as a
|
Several versions of the Python interpreter are available on Nix, as well as a
|
||||||
high amount of packages. The attribute `python` refers to the default
|
high amount of packages. The attribute `python3` refers to the default
|
||||||
interpreter, which is currently CPython 2.7. It is also possible to refer to
|
interpreter, which is currently CPython 3.8. The attribute `python` refers to
|
||||||
|
CPython 2.7 for backwards-compatibility. It is also possible to refer to
|
||||||
specific versions, e.g. `python38` refers to CPython 3.8, and `pypy` refers to
|
specific versions, e.g. `python38` refers to CPython 3.8, and `pypy` refers to
|
||||||
the default PyPy interpreter.
|
the default PyPy interpreter.
|
||||||
|
|
||||||
@ -762,10 +763,10 @@ and in this case the `python38` interpreter is automatically used.
|
|||||||
Versions 2.7, 3.6, 3.7, 3.8 and 3.9 of the CPython interpreter are available as
|
Versions 2.7, 3.6, 3.7, 3.8 and 3.9 of the CPython interpreter are available as
|
||||||
respectively `python27`, `python36`, `python37`, `python38` and `python39`. The
|
respectively `python27`, `python36`, `python37`, `python38` and `python39`. The
|
||||||
aliases `python2` and `python3` correspond to respectively `python27` and
|
aliases `python2` and `python3` correspond to respectively `python27` and
|
||||||
`python38`. The default interpreter, `python`, maps to `python2`. The PyPy
|
`python39`. The attribute `python` maps to `python2`. The PyPy interpreters
|
||||||
interpreters compatible with Python 2.7 and 3 are available as `pypy27` and
|
compatible with Python 2.7 and 3 are available as `pypy27` and `pypy3`, with
|
||||||
`pypy3`, with aliases `pypy2` mapping to `pypy27` and `pypy` mapping to `pypy2`.
|
aliases `pypy2` mapping to `pypy27` and `pypy` mapping to `pypy2`. The Nix
|
||||||
The Nix expressions for the interpreters can be found in
|
expressions for the interpreters can be found in
|
||||||
`pkgs/development/interpreters/python`.
|
`pkgs/development/interpreters/python`.
|
||||||
|
|
||||||
All packages depending on any Python interpreter get appended
|
All packages depending on any Python interpreter get appended
|
||||||
@ -788,6 +789,23 @@ Each interpreter has the following attributes:
|
|||||||
- `executable`. Name of the interpreter executable, e.g. `python3.8`.
|
- `executable`. Name of the interpreter executable, e.g. `python3.8`.
|
||||||
- `pkgs`. Set of Python packages for that specific interpreter. The package set can be modified by overriding the interpreter and passing `packageOverrides`.
|
- `pkgs`. Set of Python packages for that specific interpreter. The package set can be modified by overriding the interpreter and passing `packageOverrides`.
|
||||||
|
|
||||||
|
### Optimizations
|
||||||
|
|
||||||
|
The Python interpreters are by default not build with optimizations enabled, because
|
||||||
|
the builds are in that case not reproducible. To enable optimizations, override the
|
||||||
|
interpreter of interest, e.g using
|
||||||
|
|
||||||
|
```
|
||||||
|
let
|
||||||
|
pkgs = import ./. {};
|
||||||
|
mypython = pkgs.python3.override {
|
||||||
|
enableOptimizations = true;
|
||||||
|
reproducibleBuild = false;
|
||||||
|
self = mypython;
|
||||||
|
};
|
||||||
|
in mypython
|
||||||
|
```
|
||||||
|
|
||||||
### Building packages and applications
|
### Building packages and applications
|
||||||
|
|
||||||
Python libraries and applications that use `setuptools` or
|
Python libraries and applications that use `setuptools` or
|
||||||
|
@ -67,6 +67,12 @@
|
|||||||
for the motivation).
|
for the motivation).
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Python optimizations were disabled again. Builds with optimizations enabled
|
||||||
|
are not reproducible. Optimizations can now be enabled with an option.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<link xlink:href="https://kodi.tv/">Kodi</link> has been updated to version 19.0 "Matrix". See
|
<link xlink:href="https://kodi.tv/">Kodi</link> has been updated to version 19.0 "Matrix". See
|
||||||
@ -579,6 +585,11 @@ self: super:
|
|||||||
<xref linkend="opt-services.xserver.videoDrivers" /> no longer uses the deprecated <literal>cirrus</literal> and <literal>vesa</literal> device dependent X drivers by default. It also enables both <literal>amdgpu</literal> and <literal>nouveau</literal> drivers by default now.
|
<xref linkend="opt-services.xserver.videoDrivers" /> no longer uses the deprecated <literal>cirrus</literal> and <literal>vesa</literal> device dependent X drivers by default. It also enables both <literal>amdgpu</literal> and <literal>nouveau</literal> drivers by default now.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The <literal>kindlegen</literal> package is gone, because it is no longer supported or hosted by Amazon. Sadly, its replacement, Kindle Previewer, has no Linux support. However, there are other ways to generate MOBI files. See <link xlink:href="https://github.com/NixOS/nixpkgs/issues/96439">the discussion</link> for more info.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
The <package>apacheKafka</package> packages are now built with
|
The <package>apacheKafka</package> packages are now built with
|
||||||
|
@ -84,6 +84,7 @@ let
|
|||||||
# Kernel module loading.
|
# Kernel module loading.
|
||||||
"systemd-modules-load.service"
|
"systemd-modules-load.service"
|
||||||
"kmod-static-nodes.service"
|
"kmod-static-nodes.service"
|
||||||
|
"modprobe@.service"
|
||||||
|
|
||||||
# Filesystems.
|
# Filesystems.
|
||||||
"systemd-fsck@.service"
|
"systemd-fsck@.service"
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{ lib, fetchFromGitHub }:
|
{ lib, fetchFromGitHub }:
|
||||||
rec {
|
rec {
|
||||||
version = "8.2.1522";
|
version = "8.2.2567";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vim";
|
owner = "vim";
|
||||||
repo = "vim";
|
repo = "vim";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0dah3392cq06pagik5y7kcq61mslqvfsh7vqldv3kvhr5ilqb8qy";
|
sha256 = "sha256-FS3TZX7FKnnNpGYKbng2LIfWA9z2jqg7d2HC6t3xYTU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -14,8 +14,8 @@ let
|
|||||||
else throw "ImageMagick is not supported on this platform.";
|
else throw "ImageMagick is not supported on this platform.";
|
||||||
|
|
||||||
cfg = {
|
cfg = {
|
||||||
version = "7.0.10-61";
|
version = "7.0.11-3";
|
||||||
sha256 = "sha256-c/90N5H9iz5JYmn7/ynHgSOAmO5NTtkxajChZvjfMP8=";
|
sha256 = "sha256-y937OxAHNTbWa96oQmTpp/ivxtPVL16hr4SvzZWugQo=";
|
||||||
patches = [];
|
patches = [];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
@ -84,6 +84,7 @@ stdenv.mkDerivation {
|
|||||||
homepage = "http://www.imagemagick.org/";
|
homepage = "http://www.imagemagick.org/";
|
||||||
description = "A software suite to create, edit, compose, or convert bitmap images";
|
description = "A software suite to create, edit, compose, or convert bitmap images";
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
|
maintainers = with maintainers; [ erictapen ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "kubelogin";
|
pname = "kubelogin";
|
||||||
version = "0.0.7";
|
version = "0.0.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Azure";
|
owner = "Azure";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0jw8v6ff0iwkwxlhcr35cvhy4zg31dsm1s3q4fxgi901yj1wn6zy";
|
sha256 = "sha256-iR+DomoCErzl9GEE8qTWEkJvbCnw4Ob7R66eluMBNcQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "0al8y65xvnwl34jkpqyf6zwr21xn30zswknlym9nnn1n47fyayxb";
|
vendorSha256 = "sha256-HXSvZoOX22poOYGghCpXX9BSSR9L6YMqw+7x4WZS39o=";
|
||||||
|
|
||||||
buildFlagsArray = ''
|
buildFlagsArray = ''
|
||||||
-ldflags=
|
-ldflags=
|
||||||
|
@ -24,7 +24,7 @@ assert sendEmailSupport -> perlSupport;
|
|||||||
assert svnSupport -> perlSupport;
|
assert svnSupport -> perlSupport;
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.30.1";
|
version = "2.31.0";
|
||||||
svn = subversionClient.override { perlBindings = perlSupport; };
|
svn = subversionClient.override { perlBindings = perlSupport; };
|
||||||
|
|
||||||
gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
|
gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
|
||||||
@ -36,7 +36,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
|
url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
|
||||||
sha256 = "0rwlbps9x8kgk2hsm0bvsrkpsk9bnbnz8alknbd7i688jnhai27r";
|
sha256 = "0h4sg3xqa9pd2agrd7m18sqg319ls978d39qswyf30rjvg5n5wg8";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" ] ++ lib.optional withManual "doc";
|
outputs = [ "out" ] ++ lib.optional withManual "doc";
|
||||||
@ -311,6 +311,9 @@ stdenv.mkDerivation {
|
|||||||
# Tested to fail: 2.18.0
|
# Tested to fail: 2.18.0
|
||||||
disable_test t9902-completion "sourcing the completion script clears cached --options"
|
disable_test t9902-completion "sourcing the completion script clears cached --options"
|
||||||
|
|
||||||
|
# Flaky tests:
|
||||||
|
disable_test t5319-multi-pack-index
|
||||||
|
|
||||||
${lib.optionalString (!perlSupport) ''
|
${lib.optionalString (!perlSupport) ''
|
||||||
# request-pull is a Bash script that invokes Perl, so it is not available
|
# request-pull is a Bash script that invokes Perl, so it is not available
|
||||||
# when NO_PERL=1, and the test should be skipped, but the test suite does
|
# when NO_PERL=1, and the test should be skipped, but the test suite does
|
||||||
@ -336,7 +339,7 @@ stdenv.mkDerivation {
|
|||||||
homepage = "https://git-scm.com/";
|
homepage = "https://git-scm.com/";
|
||||||
description = "Distributed version control system";
|
description = "Distributed version control system";
|
||||||
license = lib.licenses.gpl2;
|
license = lib.licenses.gpl2;
|
||||||
changelog = "https://raw.githubusercontent.com/git/git/${version}/Documentation/RelNotes/${version}.txt";
|
changelog = "https://github.com/git/git/blob/v${version}/Documentation/RelNotes/${version}.txt";
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Git, a popular distributed version control system designed to
|
Git, a popular distributed version control system designed to
|
||||||
|
@ -74,7 +74,7 @@ runCommand name
|
|||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
allowSubstitutes = false;
|
allowSubstitutes = false;
|
||||||
# XXX: The size is somewhat arbitrary
|
# XXX: The size is somewhat arbitrary
|
||||||
passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else null;
|
passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
${buildPackages.perl}/bin/perl -w ${builder}
|
${buildPackages.perl}/bin/perl -w ${builder}
|
||||||
|
@ -132,11 +132,12 @@ if [ "$NIX_ENFORCE_NO_NATIVE_@suffixSalt@" = 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$isCpp" = 1 ]]; then
|
if [[ "$isCpp" = 1 ]]; then
|
||||||
|
NIX_CFLAGS_LINK_@suffixSalt@+=" $NIX_CXXSTDLIB_LINK_@suffixSalt@"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$cppInclude" = 1 ]]; then
|
if [[ "$cppInclude" = 1 ]]; then
|
||||||
NIX_CFLAGS_COMPILE_@suffixSalt@+=" $NIX_CXXSTDLIB_COMPILE_@suffixSalt@"
|
NIX_CFLAGS_COMPILE_@suffixSalt@+=" $NIX_CXXSTDLIB_COMPILE_@suffixSalt@"
|
||||||
fi
|
fi
|
||||||
NIX_CFLAGS_LINK_@suffixSalt@+=" $NIX_CXXSTDLIB_LINK_@suffixSalt@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
source @out@/nix-support/add-hardening.sh
|
source @out@/nix-support/add-hardening.sh
|
||||||
|
|
||||||
|
@ -1,27 +1,12 @@
|
|||||||
{ lib, stdenv, stdenvNoCC, lndir, runtimeShell }:
|
{ lib, stdenv, stdenvNoCC, lndir, runtimeShell }:
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
runCommand' = runLocal: stdenv: name: env: buildCommand:
|
|
||||||
stdenv.mkDerivation ({
|
|
||||||
name = lib.strings.sanitizeDerivationName name;
|
|
||||||
inherit buildCommand;
|
|
||||||
passAsFile = [ "buildCommand" ];
|
|
||||||
}
|
|
||||||
// (lib.optionalAttrs runLocal {
|
|
||||||
preferLocalBuild = true;
|
|
||||||
allowSubstitutes = false;
|
|
||||||
})
|
|
||||||
// env);
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
/* Run the shell command `buildCommand' to produce a store path named
|
/* Run the shell command `buildCommand' to produce a store path named
|
||||||
* `name'. The attributes in `env' are added to the environment
|
* `name'. The attributes in `env' are added to the environment
|
||||||
* prior to running the command. By default `runCommand' runs using
|
* prior to running the command. By default `runCommand` runs in a
|
||||||
* stdenv with no compiler environment. `runCommandCC`
|
* stdenv with no compiler environment. `runCommandCC` uses the default
|
||||||
|
* stdenv, `pkgs.stdenv`.
|
||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* runCommand "name" {envVariable = true;} ''echo hello > $out''
|
* runCommand "name" {envVariable = true;} ''echo hello > $out''
|
||||||
@ -42,13 +27,64 @@ rec {
|
|||||||
runCommand = runCommandNoCC;
|
runCommand = runCommandNoCC;
|
||||||
runCommandLocal = runCommandNoCCLocal;
|
runCommandLocal = runCommandNoCCLocal;
|
||||||
|
|
||||||
runCommandNoCC = runCommand' false stdenvNoCC;
|
runCommandNoCC = name: env: runCommandWith {
|
||||||
runCommandNoCCLocal = runCommand' true stdenvNoCC;
|
stdenv = stdenvNoCC;
|
||||||
|
runLocal = false;
|
||||||
|
inherit name;
|
||||||
|
derivationArgs = env;
|
||||||
|
};
|
||||||
|
runCommandNoCCLocal = name: env: runCommandWith {
|
||||||
|
stdenv = stdenvNoCC;
|
||||||
|
runLocal = true;
|
||||||
|
inherit name;
|
||||||
|
derivationArgs = env;
|
||||||
|
};
|
||||||
|
|
||||||
runCommandCC = runCommand' false stdenv;
|
runCommandCC = name: env: runCommandWith {
|
||||||
|
stdenv = stdenv;
|
||||||
|
runLocal = false;
|
||||||
|
inherit name;
|
||||||
|
derivationArgs = env;
|
||||||
|
};
|
||||||
# `runCommandCCLocal` left out on purpose.
|
# `runCommandCCLocal` left out on purpose.
|
||||||
# We shouldn’t force the user to have a cc in scope.
|
# We shouldn’t force the user to have a cc in scope.
|
||||||
|
|
||||||
|
/* Generalized version of the `runCommand`-variants
|
||||||
|
* which does customized behavior via a single
|
||||||
|
* attribute set passed as the first argument
|
||||||
|
* instead of having a lot of variants like
|
||||||
|
* `runCommand*`. Additionally it allows changing
|
||||||
|
* the used `stdenv` freely and has a more explicit
|
||||||
|
* approach to changing the arguments passed to
|
||||||
|
* `stdenv.mkDerivation`.
|
||||||
|
*/
|
||||||
|
runCommandWith =
|
||||||
|
let
|
||||||
|
# prevent infinite recursion for the default stdenv value
|
||||||
|
defaultStdenv = stdenv;
|
||||||
|
in
|
||||||
|
{ stdenv ? defaultStdenv
|
||||||
|
# which stdenv to use, defaults to a stdenv with a C compiler, pkgs.stdenv
|
||||||
|
, runLocal ? false
|
||||||
|
# whether to build this derivation locally instead of substituting
|
||||||
|
, derivationArgs ? {}
|
||||||
|
# extra arguments to pass to stdenv.mkDerivation
|
||||||
|
, name
|
||||||
|
# name of the resulting derivation
|
||||||
|
}: buildCommand:
|
||||||
|
stdenv.mkDerivation ({
|
||||||
|
name = lib.strings.sanitizeDerivationName name;
|
||||||
|
inherit buildCommand;
|
||||||
|
passAsFile = [ "buildCommand" ]
|
||||||
|
++ (derivationArgs.passAsFile or []);
|
||||||
|
}
|
||||||
|
// (lib.optionalAttrs runLocal {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
allowSubstitutes = false;
|
||||||
|
})
|
||||||
|
// builtins.removeAttrs derivationArgs [ "passAsFile" ]);
|
||||||
|
|
||||||
|
|
||||||
/* Writes a text file to the nix store.
|
/* Writes a text file to the nix store.
|
||||||
* The contents of text is added to the file in the store.
|
* The contents of text is added to the file in the store.
|
||||||
*
|
*
|
||||||
|
@ -10,13 +10,6 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
certdata2pem = fetchurl {
|
|
||||||
name = "certdata2pem.py";
|
|
||||||
url = "https://salsa.debian.org/debian/ca-certificates/raw/debian/20170717/mozilla/certdata2pem.py";
|
|
||||||
sha256 = "1d4q27j1gss0186a5m8bs5dk786w07ccyq0qi6xmd2zr1a8q16wy";
|
|
||||||
};
|
|
||||||
|
|
||||||
version = "3.60";
|
version = "3.60";
|
||||||
underscoreVersion = builtins.replaceStrings ["."] ["_"] version;
|
underscoreVersion = builtins.replaceStrings ["."] ["_"] version;
|
||||||
in
|
in
|
||||||
@ -29,6 +22,15 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "hKvVV1q4dMU65RG9Rh5dCGjRobOE7kB1MVTN0dWQ/j0=";
|
sha256 = "hKvVV1q4dMU65RG9Rh5dCGjRobOE7kB1MVTN0dWQ/j0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
certdata2pem = fetchurl {
|
||||||
|
name = "certdata2pem.py";
|
||||||
|
url = [
|
||||||
|
"https://salsa.debian.org/debian/ca-certificates/raw/debian/20170717/mozilla/certdata2pem.py"
|
||||||
|
"https://git.launchpad.net/ubuntu/+source/ca-certificates/plain/mozilla/certdata2pem.py?id=47e49e1e0a8a1ca74deda27f88fe181191562957"
|
||||||
|
];
|
||||||
|
sha256 = "1d4q27j1gss0186a5m8bs5dk786w07ccyq0qi6xmd2zr1a8q16wy";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = [ "out" "unbundled" ];
|
outputs = [ "out" "unbundled" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ python3 ];
|
nativeBuildInputs = [ python3 ];
|
||||||
@ -40,7 +42,8 @@ stdenv.mkDerivation {
|
|||||||
${concatStringsSep "\n" (map (c: ''"${c}"'') blacklist)}
|
${concatStringsSep "\n" (map (c: ''"${c}"'') blacklist)}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat ${certdata2pem} > certdata2pem.py
|
# copy from the store, otherwise python will scan it for imports
|
||||||
|
cat "$certdata2pem" > certdata2pem.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
@ -29,11 +29,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-maps";
|
pname = "gnome-maps";
|
||||||
version = "3.38.2";
|
version = "3.38.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0pa6h3md688752l7cjggncnxv13c07nj584gbz9asdblljk3r9x1";
|
sha256 = "sha256-1WQekf/kePsqqcpIliJczxjsLqTZjjV2UXmBin2+RKM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
@ -1,15 +1,13 @@
|
|||||||
{ lib, stdenv, fetchurl, meson, ninja, vala, libxslt, pkg-config, glib, gtk3, gnome3, python3, dconf
|
{ lib, stdenv, fetchurl, meson, ninja, vala, libxslt, pkg-config, glib, gtk3, gnome3, python3, dconf
|
||||||
, libxml2, gettext, docbook_xsl, wrapGAppsHook, gobject-introspection }:
|
, libxml2, gettext, docbook_xsl, wrapGAppsHook, gobject-introspection }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
pname = "dconf-editor";
|
pname = "dconf-editor";
|
||||||
version = "3.38.0";
|
version = "3.38.2";
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1d1y33c6fm86xz9xbh3bfz4y2pyas01a58lmirmdx0lh6yd292bd";
|
sha256 = "sha256-ElPa2H5iE/vzE/+eydxDWKobECYfKAcsHcDgmXuS+DU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -28,11 +28,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "eog";
|
pname = "eog";
|
||||||
version = "3.38.1";
|
version = "3.38.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1xqcfil3b68clafnxg1migp54psqh5x6arnlvdqgmvvpq9hwj7dp";
|
sha256 = "sha256-ilT9+T4wag9khToYgxrIwEg4IEdxBqrgvcAKrDc4bw4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ fetchurl
|
{ fetchurl
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
, fetchpatch
|
|
||||||
, lib, stdenv
|
, lib, stdenv
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, accountsservice
|
, accountsservice
|
||||||
@ -70,11 +69,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-control-center";
|
pname = "gnome-control-center";
|
||||||
version = "3.38.1";
|
version = "3.38.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "09i011hf23s2i4wim43vjys7y4y43cxl3kyvrnrwqvqgc5n0144d";
|
sha256 = "sha256-SdxjeNTTXBxu1ZIk9WNpFsK2+km7+4tW6xmoTW6QzRk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# See https://mail.gnome.org/archives/distributor-list/2020-September/msg00001.html
|
# See https://mail.gnome.org/archives/distributor-list/2020-September/msg00001.html
|
||||||
@ -151,22 +150,6 @@ stdenv.mkDerivation rec {
|
|||||||
inherit glibc libgnomekbd tzdata;
|
inherit glibc libgnomekbd tzdata;
|
||||||
inherit cups networkmanagerapplet;
|
inherit cups networkmanagerapplet;
|
||||||
})
|
})
|
||||||
|
|
||||||
# Fix double free when leaving user accounts panel.
|
|
||||||
# https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/853
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/gnome-control-center/commit/e80b4b5f58f448c5a3d38721f7bba32c413d46e7.patch";
|
|
||||||
sha256 = "GffsSU/uNS0Fg2lXbOuD/BrWBT4D2VKgWNGifG0FBUw=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/gnome-control-center/commit/64686cfee330849945f6ff4dcc43393eb1a6e59c.patch";
|
|
||||||
sha256 = "4VJU0q6qOtGzd/hmDncckInfEjCkC8+lXmDgxwc4VJU=";
|
|
||||||
})
|
|
||||||
# https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1173
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/gnome-control-center/-/commit/27e1140c9d4ad852b4dc6a132a14cd5532d52997.patch";
|
|
||||||
sha256 = "nU3szjKfXpRek8hhsxiCJNgMeDeIRK3QVo82D9R+kL4=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-desktop";
|
pname = "gnome-desktop";
|
||||||
version = "3.38.2";
|
version = "3.38.4";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gnome-desktop/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/gnome-desktop/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1m7iww1zk845szs9s3zc8a1s1wpd6kizndhq7gqy3575c0xgr2w9";
|
sha256 = "sha256-P2A+pb/UdyLJLPybiFRGtGJg6gnIz7Y/a92f7+NC5Iw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-disk-utility";
|
pname = "gnome-disk-utility";
|
||||||
version = "3.38.1";
|
version = "3.38.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gnome-disk-utility/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/gnome-disk-utility/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1TuF3BMDobXOHkIcH1xqwLMY4HzZqVk50uHwlZpe19k=";
|
sha256 = "sha256-EL7d5UlL6zTjoiDW8w2TIMiCUv7rhCa9mM760YNteOk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -37,11 +37,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-initial-setup";
|
pname = "gnome-initial-setup";
|
||||||
version = "3.38.2";
|
version = "3.38.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
hash = "sha256-qliJJ0+LC23moFErR3Qrgqw0ANrsgt1O/+LuonRko7g=";
|
sha256 = "001jdzsvc541qracn68r609pr5qwymrh85xrqmvzzc1dbg5w3mlg";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -65,13 +65,13 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-shell";
|
pname = "gnome-shell";
|
||||||
version = "3.38.2";
|
version = "3.38.3";
|
||||||
|
|
||||||
outputs = [ "out" "devdoc" ];
|
outputs = [ "out" "devdoc" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gnome-shell/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/gnome-shell/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "05fm7kxyvws2lbb156wfa2wf4xmkxr49rrjxg0yaxf68v000yq2k";
|
sha256 = "sha256-U0W0GMsSqXKVXOXM6u1mYkgAJzNrXFHa6lcwV1tiHO0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -42,13 +42,13 @@
|
|||||||
|
|
||||||
let self = stdenv.mkDerivation rec {
|
let self = stdenv.mkDerivation rec {
|
||||||
pname = "mutter";
|
pname = "mutter";
|
||||||
version = "3.38.2";
|
version = "3.38.3";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" ];
|
outputs = [ "out" "dev" "man" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/mutter/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/mutter/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "03a612m0c7v6y72bs3ghmpyk49177fzq6gdy1jrz4608vnalx5yr";
|
sha256 = "sha256-sjIec9Hj/i6Q5jAfQrugf02UvGR1aivxPXWunW+qIB8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -24,11 +24,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "simple-scan";
|
pname = "simple-scan";
|
||||||
version = "3.38.1";
|
version = "3.38.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0grscz96bwj79ka4qvxh8h75avdx6824k8k38ylmaj6xbl6gi0hy";
|
sha256 = "sha256-qI2AcpaCiIZJzfzfqGkrCjSs3ladwICIjyea/DqcTQs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "yelp-xsl";
|
pname = "yelp-xsl";
|
||||||
version = "3.38.1";
|
version = "3.38.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/yelp-xsl/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/yelp-xsl/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0ryzvkcgxp7xi0icmpdl2rinjn904s8imbxdi6wshzxblqymc8dk";
|
sha256 = "sha256-GTtqvUaXt7Qh6Yw21NMTXaCw/bUapT5gLtNo3YTR/QM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "yelp";
|
pname = "yelp";
|
||||||
version = "3.38.1";
|
version = "3.38.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/yelp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/yelp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "102z8khj82vdp12c3y86hhxwm1x89xpkpc5zs63c7gg21cbrwdbl";
|
sha256 = "sha256-r9RqTQrrRrtCXFIAcdgY+LKzLmnnVqv9mXlodpphVJ0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config gettext itstool wrapGAppsHook ];
|
nativeBuildInputs = [ pkg-config gettext itstool wrapGAppsHook ];
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
, CoreFoundation, Security
|
, CoreFoundation, Security
|
||||||
, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
|
, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
|
||||||
, makeRustPlatform
|
, makeRustPlatform
|
||||||
, llvmPackages_5, llvm_11
|
, llvmPackages_11, llvm_11
|
||||||
} @ args:
|
} @ args:
|
||||||
|
|
||||||
import ./default.nix {
|
import ./default.nix {
|
||||||
@ -26,7 +26,7 @@ import ./default.nix {
|
|||||||
llvmSharedForHost = pkgsBuildHost.llvm_11.override { enableSharedLibraries = true; };
|
llvmSharedForHost = pkgsBuildHost.llvm_11.override { enableSharedLibraries = true; };
|
||||||
llvmSharedForTarget = pkgsBuildTarget.llvm_11.override { enableSharedLibraries = true; };
|
llvmSharedForTarget = pkgsBuildTarget.llvm_11.override { enableSharedLibraries = true; };
|
||||||
|
|
||||||
llvmBootstrapForDarwin = llvmPackages_5;
|
llvmBootstrapForDarwin = llvmPackages_11;
|
||||||
|
|
||||||
# For use at runtime
|
# For use at runtime
|
||||||
llvmShared = llvm_11.override { enableSharedLibraries = true; };
|
llvmShared = llvm_11.override { enableSharedLibraries = true; };
|
||||||
@ -54,4 +54,4 @@ import ./default.nix {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_5" "llvm_11"])
|
(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvm_11"])
|
||||||
|
@ -38,6 +38,8 @@ let
|
|||||||
|
|
||||||
"0.48" = ./disable-graphviz-0.46.1.patch;
|
"0.48" = ./disable-graphviz-0.46.1.patch;
|
||||||
|
|
||||||
|
"0.50" = ./disable-graphviz-0.46.1.patch;
|
||||||
|
|
||||||
}.${lib.versions.majorMinor version} or (throw "no graphviz patch for this version of vala");
|
}.${lib.versions.majorMinor version} or (throw "no graphviz patch for this version of vala");
|
||||||
|
|
||||||
disableGraphviz = lib.versionAtLeast version "0.38" && !withGraphviz;
|
disableGraphviz = lib.versionAtLeast version "0.38" && !withGraphviz;
|
||||||
@ -108,8 +110,8 @@ in rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
vala_0_40 = generic {
|
vala_0_40 = generic {
|
||||||
version = "0.40.18";
|
version = "0.40.25";
|
||||||
sha256 = "1f7cdkjdysg4dcri1wbzdddm46amk2s48jkwb5ghpdvhjb4l5j2m";
|
sha256 = "1pxpack8rrmywlf47v440hc6rv3vi8q9c6niwqnwikxvb2pwf3w7";
|
||||||
};
|
};
|
||||||
|
|
||||||
vala_0_44 = generic {
|
vala_0_44 = generic {
|
||||||
@ -118,13 +120,18 @@ in rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
vala_0_46 = generic {
|
vala_0_46 = generic {
|
||||||
version = "0.46.5";
|
version = "0.46.13";
|
||||||
sha256 = "07fv895sp9wq74b20qig7hic0r4ynrr5pfaqba02r44xb794fy0s";
|
sha256 = "0d7l4vh2xra3q75kw3sy2d9bn5p6s3g3r7j37bdn6ir8l3wp2ivs";
|
||||||
};
|
};
|
||||||
|
|
||||||
vala_0_48 = generic {
|
vala_0_48 = generic {
|
||||||
version = "0.48.9";
|
version = "0.48.14";
|
||||||
sha256 = "1agyrvslv2yh9ikiw7k5nw6j6il1l2zrzfan0pzdpb9xpg9idslw";
|
sha256 = "0iz3zzimmk5wxvy5bi75v8ckv153gjrz3r5iqvl8xqackzi7v9fw";
|
||||||
|
};
|
||||||
|
|
||||||
|
vala_0_50 = generic {
|
||||||
|
version = "0.50.4";
|
||||||
|
sha256 = "1353j852h04d1x6b4n6lbg3ay40ph0adb9yi25dh74pligx33z2q";
|
||||||
};
|
};
|
||||||
|
|
||||||
vala = vala_0_48;
|
vala = vala_0_48;
|
||||||
|
@ -27,7 +27,10 @@
|
|||||||
, sha256
|
, sha256
|
||||||
, passthruFun
|
, passthruFun
|
||||||
, static ? false
|
, static ? false
|
||||||
, enableOptimizations ? (!stdenv.isDarwin)
|
, stripBytecode ? reproducibleBuild
|
||||||
|
, rebuildBytecode ? true
|
||||||
|
, reproducibleBuild ? true
|
||||||
|
, enableOptimizations ? false
|
||||||
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
|
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -36,12 +39,26 @@ assert x11Support -> tcl != null
|
|||||||
&& xlibsWrapper != null
|
&& xlibsWrapper != null
|
||||||
&& libX11 != null;
|
&& libX11 != null;
|
||||||
|
|
||||||
|
assert lib.assertMsg (enableOptimizations -> (!stdenv.cc.isClang))
|
||||||
|
"Optimizations with clang are not supported. configure: error: llvm-profdata is required for a --enable-optimizations build but could not be found.";
|
||||||
|
|
||||||
|
assert lib.assertMsg (reproducibleBuild -> stripBytecode)
|
||||||
|
"Deterministic builds require stripping bytecode.";
|
||||||
|
|
||||||
|
assert lib.assertMsg (reproducibleBuild -> (!enableOptimizations))
|
||||||
|
"Deterministic builds are not achieved when optimizations are enabled.";
|
||||||
|
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
buildPackages = pkgsBuildHost;
|
buildPackages = pkgsBuildHost;
|
||||||
inherit (passthru) pythonForBuild;
|
inherit (passthru) pythonForBuild;
|
||||||
|
|
||||||
|
pythonForBuildInterpreter = if stdenv.hostPlatform == stdenv.buildPlatform then
|
||||||
|
"$out/bin/python"
|
||||||
|
else pythonForBuild.interpreter;
|
||||||
|
|
||||||
passthru = passthruFun rec {
|
passthru = passthruFun rec {
|
||||||
inherit self sourceVersion packageOverrides;
|
inherit self sourceVersion packageOverrides;
|
||||||
implementation = "cpython";
|
implementation = "cpython";
|
||||||
@ -272,14 +289,15 @@ in with passthru; stdenv.mkDerivation ({
|
|||||||
# Determinism: Windows installers were not deterministic.
|
# Determinism: Windows installers were not deterministic.
|
||||||
# We're also not interested in building Windows installers.
|
# We're also not interested in building Windows installers.
|
||||||
find "$out" -name 'wininst*.exe' | xargs -r rm -f
|
find "$out" -name 'wininst*.exe' | xargs -r rm -f
|
||||||
'' + optionalString (stdenv.hostPlatform == stdenv.buildPlatform)
|
'' + optionalString stripBytecode ''
|
||||||
''
|
# Determinism: deterministic bytecode
|
||||||
# Determinism: rebuild all bytecode
|
# First we delete all old bytecode.
|
||||||
# We exclude lib2to3 because that's Python 2 code which fails
|
find $out -name "*.pyc" -delete
|
||||||
# We rebuild three times, once for each optimization level
|
'' + optionalString rebuildBytecode ''
|
||||||
find $out -name "*.py" | $out/bin/python -m compileall -q -f -x "lib2to3" -i -
|
# Then, we build for the two optimization levels.
|
||||||
find $out -name "*.py" | $out/bin/python -O -m compileall -q -f -x "lib2to3" -i -
|
# We do not build unoptimized bytecode, because its not entirely deterministic yet.
|
||||||
find $out -name "*.py" | $out/bin/python -OO -m compileall -q -f -x "lib2to3" -i -
|
find $out -name "*.py" | ${pythonForBuildInterpreter} -O -m compileall -q -f -x "lib2to3" -i -
|
||||||
|
find $out -name "*.py" | ${pythonForBuildInterpreter} -OO -m compileall -q -f -x "lib2to3" -i -
|
||||||
'' + optionalString stdenv.hostPlatform.isCygwin ''
|
'' + optionalString stdenv.hostPlatform.isCygwin ''
|
||||||
cp libpython2.7.dll.a $out/lib
|
cp libpython2.7.dll.a $out/lib
|
||||||
'';
|
'';
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
, libffi
|
, libffi
|
||||||
, gdbm
|
, gdbm
|
||||||
, lzma
|
, lzma
|
||||||
|
, mime-types ? null, mimetypesSupport ? true
|
||||||
, ncurses
|
, ncurses
|
||||||
, openssl
|
, openssl
|
||||||
, readline
|
, readline
|
||||||
@ -11,6 +12,7 @@
|
|||||||
, tcl ? null, tk ? null, tix ? null, libX11 ? null, xorgproto ? null, x11Support ? false
|
, tcl ? null, tk ? null, tix ? null, libX11 ? null, xorgproto ? null, x11Support ? false
|
||||||
, bluez ? null, bluezSupport ? false
|
, bluez ? null, bluezSupport ? false
|
||||||
, zlib
|
, zlib
|
||||||
|
, tzdata ? null
|
||||||
, self
|
, self
|
||||||
, configd
|
, configd
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
@ -33,12 +35,11 @@
|
|||||||
, stripTests ? false
|
, stripTests ? false
|
||||||
, stripTkinter ? false
|
, stripTkinter ? false
|
||||||
, rebuildBytecode ? true
|
, rebuildBytecode ? true
|
||||||
, stripBytecode ? false
|
, stripBytecode ? reproducibleBuild
|
||||||
, includeSiteCustomize ? true
|
, includeSiteCustomize ? true
|
||||||
, static ? stdenv.hostPlatform.isStatic
|
, static ? stdenv.hostPlatform.isStatic
|
||||||
# Not using optimizations on Darwin
|
, enableOptimizations ? false
|
||||||
# configure: error: llvm-profdata is required for a --enable-optimizations build but could not be found.
|
, reproducibleBuild ? true
|
||||||
, enableOptimizations ? (!stdenv.isDarwin)
|
|
||||||
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
|
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -54,12 +55,25 @@ assert x11Support -> tcl != null
|
|||||||
|
|
||||||
assert bluezSupport -> bluez != null;
|
assert bluezSupport -> bluez != null;
|
||||||
|
|
||||||
|
assert mimetypesSupport -> mime-types != null;
|
||||||
|
|
||||||
|
assert lib.assertMsg (enableOptimizations -> (!stdenv.cc.isClang))
|
||||||
|
"Optimizations with clang are not supported. configure: error: llvm-profdata is required for a --enable-optimizations build but could not be found.";
|
||||||
|
|
||||||
|
assert lib.assertMsg (reproducibleBuild -> stripBytecode)
|
||||||
|
"Deterministic builds require stripping bytecode.";
|
||||||
|
|
||||||
|
assert lib.assertMsg (reproducibleBuild -> (!enableOptimizations))
|
||||||
|
"Deterministic builds are not achieved when optimizations are enabled.";
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
buildPackages = pkgsBuildHost;
|
buildPackages = pkgsBuildHost;
|
||||||
inherit (passthru) pythonForBuild;
|
inherit (passthru) pythonForBuild;
|
||||||
|
|
||||||
|
tzdataSupport = tzdata != null && passthru.pythonAtLeast "3.9";
|
||||||
|
|
||||||
passthru = passthruFun rec {
|
passthru = passthruFun rec {
|
||||||
inherit self sourceVersion packageOverrides;
|
inherit self sourceVersion packageOverrides;
|
||||||
implementation = "cpython";
|
implementation = "cpython";
|
||||||
@ -92,7 +106,8 @@ let
|
|||||||
zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ]
|
zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ]
|
||||||
++ optionals x11Support [ tcl tk libX11 xorgproto ]
|
++ optionals x11Support [ tcl tk libX11 xorgproto ]
|
||||||
++ optionals (bluezSupport && stdenv.isLinux) [ bluez ]
|
++ optionals (bluezSupport && stdenv.isLinux) [ bluez ]
|
||||||
++ optionals stdenv.isDarwin [ configd ]);
|
++ optionals stdenv.isDarwin [ configd ])
|
||||||
|
++ optionals tzdataSupport [ tzdata ]; # `zoneinfo` module
|
||||||
|
|
||||||
hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false);
|
hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false);
|
||||||
|
|
||||||
@ -175,6 +190,9 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
# (since it will do a futile invocation of gcc (!) to find
|
# (since it will do a futile invocation of gcc (!) to find
|
||||||
# libuuid, slowing down program startup a lot).
|
# libuuid, slowing down program startup a lot).
|
||||||
(./. + "/${sourceVersion.major}.${sourceVersion.minor}/no-ldconfig.patch")
|
(./. + "/${sourceVersion.major}.${sourceVersion.minor}/no-ldconfig.patch")
|
||||||
|
] ++ optionals mimetypesSupport [
|
||||||
|
# Make the mimetypes module refer to the right file
|
||||||
|
./mimetypes.patch
|
||||||
] ++ optionals (isPy35 || isPy36) [
|
] ++ optionals (isPy35 || isPy36) [
|
||||||
# Determinism: Write null timestamps when compiling python files.
|
# Determinism: Write null timestamps when compiling python files.
|
||||||
./3.5/force_bytecode_determinism.patch
|
./3.5/force_bytecode_determinism.patch
|
||||||
@ -235,6 +253,9 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Lib/subprocess.py \
|
substituteInPlace Lib/subprocess.py \
|
||||||
--replace "'/bin/sh'" "'${bash}/bin/sh'"
|
--replace "'/bin/sh'" "'${bash}/bin/sh'"
|
||||||
|
'' + optionalString mimetypesSupport ''
|
||||||
|
substituteInPlace Lib/mimetypes.py \
|
||||||
|
--replace "@mime-types@" "${mime-types}"
|
||||||
'' + optionalString (x11Support && (tix != null)) ''
|
'' + optionalString (x11Support && (tix != null)) ''
|
||||||
substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
|
substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
|
||||||
'';
|
'';
|
||||||
@ -285,6 +306,8 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
# Never even try to use lchmod on linux,
|
# Never even try to use lchmod on linux,
|
||||||
# don't rely on detecting glibc-isms.
|
# don't rely on detecting glibc-isms.
|
||||||
"ac_cv_func_lchmod=no"
|
"ac_cv_func_lchmod=no"
|
||||||
|
] ++ optionals tzdataSupport [
|
||||||
|
"--with-tzpath=${tzdata}/share/zoneinfo"
|
||||||
] ++ optional static "LDFLAGS=-static";
|
] ++ optional static "LDFLAGS=-static";
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
@ -304,7 +327,14 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
|
|
||||||
setupHook = python-setup-hook sitePackages;
|
setupHook = python-setup-hook sitePackages;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = let
|
||||||
|
# References *not* to nuke from (sys)config files
|
||||||
|
keep-references = concatMapStringsSep " " (val: "-e ${val}") ([
|
||||||
|
(placeholder "out")
|
||||||
|
] ++ optionals tzdataSupport [
|
||||||
|
tzdata
|
||||||
|
]);
|
||||||
|
in ''
|
||||||
# needed for some packages, especially packages that backport functionality
|
# needed for some packages, especially packages that backport functionality
|
||||||
# to 2.x from 3.x
|
# to 2.x from 3.x
|
||||||
for item in $out/lib/${libPrefix}/test/*; do
|
for item in $out/lib/${libPrefix}/test/*; do
|
||||||
@ -340,8 +370,8 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Further get rid of references. https://github.com/NixOS/nixpkgs/issues/51668
|
# Further get rid of references. https://github.com/NixOS/nixpkgs/issues/51668
|
||||||
find $out/lib/python*/config-* -type f -print -exec nuke-refs -e $out '{}' +
|
find $out/lib/python*/config-* -type f -print -exec nuke-refs ${keep-references} '{}' +
|
||||||
find $out/lib -name '_sysconfigdata*.py*' -print -exec nuke-refs -e $out '{}' +
|
find $out/lib -name '_sysconfigdata*.py*' -print -exec nuke-refs ${keep-references} '{}' +
|
||||||
|
|
||||||
# Make the sysconfigdata module accessible on PYTHONPATH
|
# Make the sysconfigdata module accessible on PYTHONPATH
|
||||||
# This allows build Python to import host Python's sysconfigdata
|
# This allows build Python to import host Python's sysconfigdata
|
||||||
@ -360,18 +390,19 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
'' + optionalString includeSiteCustomize ''
|
'' + optionalString includeSiteCustomize ''
|
||||||
# Include a sitecustomize.py file
|
# Include a sitecustomize.py file
|
||||||
cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
|
cp ${../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
|
||||||
'' + optionalString rebuildBytecode ''
|
|
||||||
|
|
||||||
# Determinism: rebuild all bytecode
|
'' + optionalString stripBytecode ''
|
||||||
# We exclude lib2to3 because that's Python 2 code which fails
|
# Determinism: deterministic bytecode
|
||||||
# We rebuild three times, once for each optimization level
|
# First we delete all old bytecode.
|
||||||
|
find $out -type d -name __pycache__ -print0 | xargs -0 -I {} rm -rf "{}"
|
||||||
|
'' + optionalString rebuildBytecode ''
|
||||||
|
# Then, we build for the two optimization levels.
|
||||||
|
# We do not build unoptimized bytecode, because its not entirely deterministic yet.
|
||||||
# Python 3.7 implements PEP 552, introducing support for deterministic bytecode.
|
# Python 3.7 implements PEP 552, introducing support for deterministic bytecode.
|
||||||
# This is automatically used when `SOURCE_DATE_EPOCH` is set.
|
# compileall uses this checked-hash method by default when `SOURCE_DATE_EPOCH` is set.
|
||||||
find $out -name "*.py" | ${pythonForBuildInterpreter} -m compileall -q -f -x "lib2to3" -i -
|
# We exclude lib2to3 because that's Python 2 code which fails
|
||||||
find $out -name "*.py" | ${pythonForBuildInterpreter} -O -m compileall -q -f -x "lib2to3" -i -
|
find $out -name "*.py" | ${pythonForBuildInterpreter} -O -m compileall -q -f -x "lib2to3" -i -
|
||||||
find $out -name "*.py" | ${pythonForBuildInterpreter} -OO -m compileall -q -f -x "lib2to3" -i -
|
find $out -name "*.py" | ${pythonForBuildInterpreter} -OO -m compileall -q -f -x "lib2to3" -i -
|
||||||
'' + optionalString stripBytecode ''
|
|
||||||
find $out -type d -name __pycache__ -print0 | xargs -0 -I {} rm -rf "{}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
preFixup = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||||
|
23
pkgs/development/interpreters/python/cpython/mimetypes.patch
Normal file
23
pkgs/development/interpreters/python/cpython/mimetypes.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff --git i/Lib/mimetypes.py w/Lib/mimetypes.py
|
||||||
|
index f3343c8..ab5b886 100644
|
||||||
|
--- i/Lib/mimetypes.py
|
||||||
|
+++ w/Lib/mimetypes.py
|
||||||
|
@@ -40,16 +40,8 @@
|
||||||
|
]
|
||||||
|
|
||||||
|
knownfiles = [
|
||||||
|
- "/etc/mime.types",
|
||||||
|
- "/etc/httpd/mime.types", # Mac OS X
|
||||||
|
- "/etc/httpd/conf/mime.types", # Apache
|
||||||
|
- "/etc/apache/mime.types", # Apache 1
|
||||||
|
- "/etc/apache2/mime.types", # Apache 2
|
||||||
|
- "/usr/local/etc/httpd/conf/mime.types",
|
||||||
|
- "/usr/local/lib/netscape/mime.types",
|
||||||
|
- "/usr/local/etc/httpd/conf/mime.types", # Apache 1.2
|
||||||
|
- "/usr/local/etc/mime.types", # Apache 1.3
|
||||||
|
- ]
|
||||||
|
+ "@mime-types@/etc/mime.types",
|
||||||
|
+]
|
||||||
|
|
||||||
|
inited = False
|
||||||
|
_db = None
|
@ -108,6 +108,19 @@ with pkgs;
|
|||||||
python = self;
|
python = self;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sources = {
|
||||||
|
"python38" = {
|
||||||
|
sourceVersion = {
|
||||||
|
major = "3";
|
||||||
|
minor = "8";
|
||||||
|
patch = "8";
|
||||||
|
suffix = "";
|
||||||
|
};
|
||||||
|
sha256 = "fGZCSf935EPW6g5M8OWH6ukYyjxI0IHRkV/iofG8xcw=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
python27 = callPackage ./cpython/2.7 {
|
python27 = callPackage ./cpython/2.7 {
|
||||||
@ -149,18 +162,11 @@ in {
|
|||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
|
|
||||||
python38 = callPackage ./cpython {
|
python38 = callPackage ./cpython ({
|
||||||
self = python38;
|
self = python38;
|
||||||
sourceVersion = {
|
|
||||||
major = "3";
|
|
||||||
minor = "8";
|
|
||||||
patch = "8";
|
|
||||||
suffix = "";
|
|
||||||
};
|
|
||||||
sha256 = "fGZCSf935EPW6g5M8OWH6ukYyjxI0IHRkV/iofG8xcw=";
|
|
||||||
inherit (darwin) configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
} // sources.python38);
|
||||||
|
|
||||||
python39 = callPackage ./cpython {
|
python39 = callPackage ./cpython {
|
||||||
self = python39;
|
self = python39;
|
||||||
@ -189,8 +195,9 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Minimal versions of Python (built without optional dependencies)
|
# Minimal versions of Python (built without optional dependencies)
|
||||||
python3Minimal = (python38.override {
|
python3Minimal = (callPackage ./cpython ({
|
||||||
self = python3Minimal;
|
self = python3Minimal;
|
||||||
|
inherit passthruFun;
|
||||||
pythonAttr = "python3Minimal";
|
pythonAttr = "python3Minimal";
|
||||||
# strip down that python version as much as possible
|
# strip down that python version as much as possible
|
||||||
openssl = null;
|
openssl = null;
|
||||||
@ -199,6 +206,7 @@ in {
|
|||||||
gdbm = null;
|
gdbm = null;
|
||||||
sqlite = null;
|
sqlite = null;
|
||||||
configd = null;
|
configd = null;
|
||||||
|
tzdata = null;
|
||||||
stripConfig = true;
|
stripConfig = true;
|
||||||
stripIdlelib = true;
|
stripIdlelib = true;
|
||||||
stripTests = true;
|
stripTests = true;
|
||||||
@ -207,7 +215,8 @@ in {
|
|||||||
stripBytecode = true;
|
stripBytecode = true;
|
||||||
includeSiteCustomize = false;
|
includeSiteCustomize = false;
|
||||||
enableOptimizations = false;
|
enableOptimizations = false;
|
||||||
}).overrideAttrs(old: {
|
mimetypesSupport = false;
|
||||||
|
} // sources.python38)).overrideAttrs(old: {
|
||||||
pname = "python3-minimal";
|
pname = "python3-minimal";
|
||||||
meta = old.meta // {
|
meta = old.meta // {
|
||||||
maintainers = [];
|
maintainers = [];
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
# files.
|
# files.
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "acl-2.2.53";
|
name = "acl-2.3.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://savannah/acl/${name}.tar.gz";
|
url = "mirror://savannah/acl/${name}.tar.gz";
|
||||||
sha256 = "1ir6my3w74s6nfbgbqgzj6w570sn0qjf3524zx8xh67lqrjrigh6";
|
sha256 = "sha256-vTj9u7A8eTdK9RRn6+VJfLwDNbgld/MMlRpBqVtTMAk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sratom";
|
pname = "sratom";
|
||||||
version = "0.6.4";
|
version = "0.6.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.drobilla.net/${pname}-${version}.tar.bz2";
|
url = "https://download.drobilla.net/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l";
|
sha256 = "sha256-Ossysa3Forf6za3i4IGLzWxx8j+EoevBeBW7eg0tAt8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config wafHook python3 ];
|
nativeBuildInputs = [ pkg-config wafHook python3 ];
|
||||||
|
@ -45,11 +45,11 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "glib";
|
pname = "glib";
|
||||||
version = "2.66.4";
|
version = "2.66.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "l9+GcOMvn9T3OSsJgOZh3WJQEgFdWDUNoeWOND9K+YQ=";
|
sha256 = "sha256-l7yH3ZE2VYmvXLv+oldIM66nobcYQP02Xs0oUsdrnIs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = optionals stdenv.isDarwin [
|
patches = optionals stdenv.isDarwin [
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
|
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
|
||||||
|
index 1282c10a1..feadfe3aa 100644
|
||||||
--- a/gio/gsettingsschema.c
|
--- a/gio/gsettingsschema.c
|
||||||
+++ b/gio/gsettingsschema.c
|
+++ b/gio/gsettingsschema.c
|
||||||
@@ -352,6 +352,9 @@
|
@@ -360,6 +360,9 @@ initialise_schema_sources (void)
|
||||||
|
|
||||||
try_prepend_data_dir (g_get_user_data_dir ());
|
try_prepend_data_dir (g_get_user_data_dir ());
|
||||||
|
|
||||||
+ if ((path = g_getenv ("NIX_GSETTINGS_OVERRIDES_DIR")) != NULL)
|
+ if (!is_setuid && (path = g_getenv ("NIX_GSETTINGS_OVERRIDES_DIR")) != NULL)
|
||||||
+ try_prepend_dir (path);
|
+ try_prepend_dir (path);
|
||||||
+
|
+
|
||||||
if ((path = g_getenv ("GSETTINGS_SCHEMA_DIR")) != NULL)
|
/* Disallow loading extra schemas if running as setuid, as that could
|
||||||
try_prepend_dir (path);
|
* allow reading privileged files. */
|
||||||
|
if (!is_setuid && (path = g_getenv ("GSETTINGS_SCHEMA_DIR")) != NULL)
|
||||||
|
Binary file not shown.
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
version = "2.32";
|
version = "2.32";
|
||||||
patchSuffix = "-37";
|
patchSuffix = "-39";
|
||||||
sha256 = "0di848ibffrnwq7g2dvgqrnn4xqhj3h96csn69q4da51ymafl9qn";
|
sha256 = "0di848ibffrnwq7g2dvgqrnn4xqhj3h96csn69q4da51ymafl9qn";
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ stdenv.mkDerivation ({
|
|||||||
and using git or something would complicate bootstrapping.
|
and using git or something would complicate bootstrapping.
|
||||||
Fortunately it's not too big.
|
Fortunately it's not too big.
|
||||||
$ git checkout origin/release/2.32/master; git describe
|
$ git checkout origin/release/2.32/master; git describe
|
||||||
glibc-2.32-37-g760e1d2878
|
glibc-2.32-39-g44b3959329
|
||||||
$ git show --reverse glibc-2.32.. | gzip -n -9 --rsyncable - > 2.32-master.patch.gz
|
$ git show --reverse glibc-2.32.. | gzip -n -9 --rsyncable - > 2.32-master.patch.gz
|
||||||
*/
|
*/
|
||||||
./2.32-master.patch.gz
|
./2.32-master.patch.gz
|
||||||
|
@ -1,18 +1,20 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, gnum4, glib, libsigcxx, gnome3, darwin }:
|
{ lib, stdenv, fetchurl, pkg-config, gnum4, glib, libsigcxx, gnome3, darwin, meson, ninja }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "glibmm";
|
pname = "glibmm";
|
||||||
version = "2.64.2";
|
version = "2.64.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1v6lp23fr2qh4zshcnm28sn29j3nzgsvcqj2nhmrnvamipjq4lm7";
|
sha256 = "sha256-UI/IbiyRQRmKoWwiWxb9a5EZF8DTgXYCZShE0Jc+o4Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
pkg-config
|
pkg-config
|
||||||
|
ninja
|
||||||
gnum4
|
gnum4
|
||||||
glib # for glib-compile-schemas
|
glib # for glib-compile-schemas
|
||||||
];
|
];
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
assert guileBindings -> guile != null;
|
assert guileBindings -> guile != null;
|
||||||
let
|
let
|
||||||
version = "3.6.15";
|
version = "3.7.1";
|
||||||
|
|
||||||
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
||||||
# https://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
# https://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
||||||
@ -23,8 +23,8 @@ stdenv.mkDerivation {
|
|||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnupg/gnutls/v3.6/gnutls-${version}.tar.xz";
|
url = "mirror://gnupg/gnutls/v3.7/gnutls-${version}.tar.xz";
|
||||||
sha256 = "0n0m93ymzd0q9hbknxc2ycanz49sqlkyyf73g9fk7n787llc7a0f";
|
sha256 = "0vxcbig87sdc73h58pmcpbi4al1zgcxid1jn67mhcpna7sbdfxrp";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" "devdoc" ];
|
outputs = [ "bin" "dev" "out" "man" "devdoc" ];
|
||||||
@ -45,9 +45,7 @@ stdenv.mkDerivation {
|
|||||||
# - trust-store: default trust store path (/etc/ssl/...) is missing in sandbox (3.5.11)
|
# - trust-store: default trust store path (/etc/ssl/...) is missing in sandbox (3.5.11)
|
||||||
# - psk-file: no idea; it broke between 3.6.3 and 3.6.4
|
# - psk-file: no idea; it broke between 3.6.3 and 3.6.4
|
||||||
# Change p11-kit test to use pkg-config to find p11-kit
|
# Change p11-kit test to use pkg-config to find p11-kit
|
||||||
postPatch = lib.optionalString (lib.versionAtLeast version "3.4") ''
|
postPatch = lib.optionalString (lib.versionAtLeast version "3.6") ''
|
||||||
sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' -i tests/cert-tests/name-constraints
|
|
||||||
'' + lib.optionalString (lib.versionAtLeast version "3.6") ''
|
|
||||||
sed '2iexit 77' -i tests/{pkgconfig,fastopen}.sh
|
sed '2iexit 77' -i tests/{pkgconfig,fastopen}.sh
|
||||||
sed '/^void doit(void)/,/^{/ s/{/{ exit(77);/' -i tests/{trust-store,psk-file}.c
|
sed '/^void doit(void)/,/^{/ s/{/{ exit(77);/' -i tests/{trust-store,psk-file}.c
|
||||||
sed 's:/usr/lib64/pkcs11/ /usr/lib/pkcs11/ /usr/lib/x86_64-linux-gnu/pkcs11/:`pkg-config --variable=p11_module_path p11-kit-1`:' -i tests/p11-kit-trust.sh
|
sed 's:/usr/lib64/pkcs11/ /usr/lib/pkcs11/ /usr/lib/x86_64-linux-gnu/pkcs11/:`pkg-config --variable=p11_module_path p11-kit-1`:' -i tests/p11-kit-trust.sh
|
||||||
|
@ -62,7 +62,7 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gtk+3";
|
pname = "gtk+3";
|
||||||
version = "3.24.24";
|
version = "3.24.27";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ] ++ lib.optional withGtkDoc "devdoc";
|
outputs = [ "out" "dev" ] ++ lib.optional withGtkDoc "devdoc";
|
||||||
outputBin = "dev";
|
outputBin = "dev";
|
||||||
@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gtk+/${lib.versions.majorMinor version}/gtk+-${version}.tar.xz";
|
url = "mirror://gnome/sources/gtk+/${lib.versions.majorMinor version}/gtk+-${version}.tar.xz";
|
||||||
sha256 = "12ipk1d376bai9v820qzhxba93kkh5abi6mhyqr4hwjvqmkl77fc";
|
sha256 = "09ksflq5j257bf5zn8q2nnf2flicg9qqgfy7za79z7rkf1shc77p";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -188,6 +188,8 @@ stdenv.mkDerivation rec {
|
|||||||
moveToOutput bin/gtk-update-icon-cache "$out"
|
moveToOutput bin/gtk-update-icon-cache "$out"
|
||||||
# Launcher
|
# Launcher
|
||||||
moveToOutput bin/gtk-launch "$out"
|
moveToOutput bin/gtk-launch "$out"
|
||||||
|
# Broadway daemon
|
||||||
|
moveToOutput bin/broadwayd "$out"
|
||||||
|
|
||||||
# TODO: patch glib directly
|
# TODO: patch glib directly
|
||||||
for f in $dev/bin/gtk-encode-symbolic-svg; do
|
for f in $dev/bin/gtk-encode-symbolic-svg; do
|
||||||
@ -226,7 +228,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
homepage = "https://www.gtk.org/";
|
homepage = "https://www.gtk.org/";
|
||||||
license = licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
maintainers = with maintainers; [ raskin lethalman worldofpeace ];
|
maintainers = with maintainers; [ raskin ] ++ teams.gnome.members;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
changelog = "https://gitlab.gnome.org/GNOME/gtk/-/raw/${version}/NEWS";
|
changelog = "https://gitlab.gnome.org/GNOME/gtk/-/raw/${version}/NEWS";
|
||||||
};
|
};
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, gtk3, glibmm, cairomm, pangomm, atkmm, epoxy, gnome3 }:
|
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, python3, gtk3, glibmm, cairomm, pangomm, atkmm, epoxy, gnome3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gtkmm";
|
pname = "gtkmm";
|
||||||
version = "3.24.2";
|
version = "3.24.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd";
|
sha256 = "sha256-YEl8T381TDvSVXSF8CVPi3tM9L68n+4L4mp3dE6s1DU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config meson ninja python3 ];
|
||||||
buildInputs = [ epoxy ];
|
buildInputs = [ epoxy ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ glibmm gtk3 atkmm cairomm pangomm ];
|
propagatedBuildInputs = [ glibmm gtk3 atkmm cairomm pangomm ];
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchpatch
|
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, pkg-config
|
, pkg-config
|
||||||
@ -20,36 +19,15 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gupnp";
|
pname = "gupnp";
|
||||||
version = "1.2.0";
|
version = "1.2.4";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0911lv1bivsyv9wwdxm0i1w4r89j0vyyqp200gsfdnzk6v1a4x7x";
|
sha256 = "sha256-96AwfqUfXkTRuDL0k92QRURKOk4hHvhd/Zql3W6up9E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Nix’s pkg-config ignores Requires.private
|
|
||||||
# https://github.com/NixOS/nixpkgs/commit/1e6622f4d5d500d6e701bd81dd4a22977d10637d
|
|
||||||
# We are essentialy reverting the following patch for now
|
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=685477
|
|
||||||
# at least until Requires.internal or something is implemented
|
|
||||||
# https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/7
|
|
||||||
./fix-requires.patch
|
|
||||||
|
|
||||||
# fix deadlock in gupnp-igd tests
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/gupnp/commit/d208562657f62b34759896ca9e974bd582d1f963.patch";
|
|
||||||
sha256 = "02kzsb4glxhgb1npf6qqgafiki0ws75sly5h470431mihc6sgp4f";
|
|
||||||
})
|
|
||||||
# fix breakage in gupnp-igd tests
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/gupnp/commit/0648399acb989473119fe59d0b9f65c923e69483.patch";
|
|
||||||
sha256 = "0ba0rngk3a4n3z4dmq06wzgh0n3q9la1nr25qdxqbwlszmxfxpjf";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
--- a/libgupnp/meson.build
|
|
||||||
+++ b/libgupnp/meson.build
|
|
||||||
@@ -110,6 +110,7 @@ pkg.generate(
|
|
||||||
libraries : libgupnp,
|
|
||||||
subdirs: 'gupnp-1.2',
|
|
||||||
name : 'gupnp-1.2',
|
|
||||||
+ requires: requires,
|
|
||||||
description : 'GObject-based UPnP library',
|
|
||||||
version : meson.project_version(),
|
|
||||||
filebase : 'gupnp-1.2'
|
|
||||||
--- a/meson.build
|
|
||||||
+++ a/meson.build
|
|
||||||
@@ -18,6 +18,13 @@ add_global_arguments('-DHAVE_CONFIG_H=1', language : 'c')
|
|
||||||
|
|
||||||
guul = subproject('guul', default_options : ['default_library=static'])
|
|
||||||
|
|
||||||
+requires = [
|
|
||||||
+ dependency('glib-2.0', version : '>= 2.44'),
|
|
||||||
+ dependency('gssdp-1.2', version : '>= 1.1'),
|
|
||||||
+ dependency('libsoup-2.4', version : '>= 2.48.0'),
|
|
||||||
+ dependency('libxml-2.0')
|
|
||||||
+]
|
|
||||||
+
|
|
||||||
dependencies = [
|
|
||||||
dependency('glib-2.0', version : '>= 2.44'),
|
|
||||||
dependency('gio-2.0', version : '>= 2.44'),
|
|
@ -11,7 +11,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.7.4";
|
version = "2.8.0";
|
||||||
inherit (lib) optional optionals optionalString;
|
inherit (lib) optional optionals optionalString;
|
||||||
mesonFeatureFlag = opt: b:
|
mesonFeatureFlag = opt: b:
|
||||||
"-D${opt}=${if b then "enabled" else "disabled"}";
|
"-D${opt}=${if b then "enabled" else "disabled"}";
|
||||||
@ -24,7 +24,7 @@ stdenv.mkDerivation {
|
|||||||
owner = "harfbuzz";
|
owner = "harfbuzz";
|
||||||
repo = "harfbuzz";
|
repo = "harfbuzz";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-uMkniDNBQ2mxDmeM7K/YQtZ3Avh9RVXYe7XsUErGas8=";
|
sha256 = "sha256-JnvOFGK2HWIpzuwgZtyt0IfKfnoXD1LMeVb3RzMmyY4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "iso-codes";
|
pname = "iso-codes";
|
||||||
version = "4.5.0";
|
version = "4.6.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.bz2";
|
url = "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.bz2";
|
||||||
sha256 = "17nnyx07q8vbyqsxbvp4m5s2nrc4fxl3dvgbgmkqww2wl4x1fv9y";
|
sha256 = "sha256-Ivd5538QpTFXP2r6ca/g12IZ0ZW1nduu0z4kiSb9Mxs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libipt";
|
pname = "libipt";
|
||||||
version = "2.0.3";
|
version = "2.0.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "intel";
|
owner = "intel";
|
||||||
repo = "libipt";
|
repo = "libipt";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1i6jmv345rqd88qmap6iqbaph4pkd6wbjgkixf22a80pj7cfm1s4";
|
sha256 = "sha256-KhRmRoIHvpx5rV7roCnUH+a7JtPb6UqD41Wi4wHSR1c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# files.
|
# files.
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.2.0";
|
version = "1.2.1";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libmpc";
|
pname = "libmpc";
|
||||||
@ -16,7 +16,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/mpc/mpc-${version}.tar.gz";
|
url = "mirror://gnu/mpc/mpc-${version}.tar.gz";
|
||||||
sha256 = "19pxx3gwhwl588v496g3aylhcw91z1dk1d5x3a8ik71sancjs3z9";
|
sha256 = "0n846hqfqvmsmim7qdlms0qr86f1hck19p12nq3g3z2x74n3sl0p";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gmp mpfr ];
|
buildInputs = [ gmp mpfr ];
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libxkbcommon";
|
pname = "libxkbcommon";
|
||||||
version = "1.0.3";
|
version = "1.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://xkbcommon.org/download/${pname}-${version}.tar.xz";
|
url = "https://xkbcommon.org/download/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0lmwglj16anhpaq0h830xsl1ivknv75i4lir9bk88aq73s2jy852";
|
sha256 = "0in2fq2x4yhyjmcn9n5n43zsawsdh12d4sm6l57934kgb75gqb21";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "openldap";
|
pname = "openldap";
|
||||||
version = "2.4.57";
|
version = "2.4.58";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.openldap.org/software/download/OpenLDAP/openldap-release/${pname}-${version}.tgz";
|
url = "https://www.openldap.org/software/download/OpenLDAP/openldap-release/${pname}-${version}.tgz";
|
||||||
sha256 = "sha256-x7pH4ebstbQ289Qygd9Xq+/6mSYhQa7IImKLwiD2tFo=";
|
sha256 = "sha256-V7WSVL4V0L9qmrPVFMHAV3ewISMpFTMTSofJRGj49Hs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: separate "out" and "bin"
|
# TODO: separate "out" and "bin"
|
||||||
|
@ -3,8 +3,17 @@
|
|||||||
, enableSSL2 ? false
|
, enableSSL2 ? false
|
||||||
, enableSSL3 ? false
|
, enableSSL3 ? false
|
||||||
, static ? stdenv.hostPlatform.isStatic
|
, static ? stdenv.hostPlatform.isStatic
|
||||||
|
# Used to avoid cross compiling perl, for example, in darwin bootstrap tools.
|
||||||
|
# This will cause c_rehash to refer to perl via the environment, but otherwise
|
||||||
|
# will produce a perfectly functional openssl binary and library.
|
||||||
|
, withPerl ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert (
|
||||||
|
lib.assertMsg (!withPerl -> stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
|
"withPerl should not be disabled unless cross compiling"
|
||||||
|
);
|
||||||
|
|
||||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||||
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
||||||
# cgit) that are needed here should be included directly in Nixpkgs as
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
||||||
@ -46,7 +55,10 @@ let
|
|||||||
separateDebugInfo = !(stdenv.hostPlatform.useLLVM or false) && stdenv.cc.isGNU;
|
separateDebugInfo = !(stdenv.hostPlatform.useLLVM or false) && stdenv.cc.isGNU;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl ];
|
nativeBuildInputs = [ perl ];
|
||||||
buildInputs = lib.optional withCryptodev cryptodev;
|
buildInputs = lib.optional withCryptodev cryptodev
|
||||||
|
# perl is included to allow the interpreter path fixup hook to set the
|
||||||
|
# correct interpreter in c_rehash.
|
||||||
|
++ lib.optional withPerl perl;
|
||||||
|
|
||||||
# TODO(@Ericson2314): Improve with mass rebuild
|
# TODO(@Ericson2314): Improve with mass rebuild
|
||||||
configurePlatforms = [];
|
configurePlatforms = [];
|
||||||
@ -108,12 +120,20 @@ let
|
|||||||
rm "$out/lib/"*.a
|
rm "$out/lib/"*.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
'' +
|
|
||||||
''
|
|
||||||
mkdir -p $bin
|
mkdir -p $bin
|
||||||
'' + lib.optionalString (!stdenv.hostPlatform.isWindows)
|
'' + lib.optionalString (!stdenv.hostPlatform.isWindows)
|
||||||
|
# Fix bin/c_rehash's perl interpreter line
|
||||||
|
#
|
||||||
|
# - openssl 1_0_2: embeds a reference to buildPackages.perl
|
||||||
|
# - openssl 1_1: emits "#!/usr/bin/env perl"
|
||||||
|
#
|
||||||
|
# In the case of openssl_1_0_2, reset the invalid reference and let the
|
||||||
|
# interpreter hook take care of it.
|
||||||
|
#
|
||||||
|
# In both cases, if withPerl = false, the intepreter line is expected be
|
||||||
|
# "#!/usr/bin/env perl"
|
||||||
''
|
''
|
||||||
substituteInPlace $out/bin/c_rehash --replace ${buildPackages.perl} ${perl}
|
substituteInPlace $out/bin/c_rehash --replace ${buildPackages.perl}/bin/perl "/usr/bin/env perl"
|
||||||
'' +
|
'' +
|
||||||
''
|
''
|
||||||
mv $out/bin $bin/
|
mv $out/bin $bin/
|
||||||
|
@ -1,57 +1,91 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, cairo, harfbuzz
|
{ lib
|
||||||
, libintl, libthai, gobject-introspection, darwin, fribidi, gnome3
|
, stdenv
|
||||||
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, makeFontsConf, freefont_ttf
|
, fetchurl
|
||||||
, meson, ninja, glib
|
, fetchpatch
|
||||||
|
, pkg-config
|
||||||
|
, cairo
|
||||||
|
, harfbuzz
|
||||||
|
, libintl
|
||||||
|
, libthai
|
||||||
|
, gobject-introspection
|
||||||
|
, darwin
|
||||||
|
, fribidi
|
||||||
|
, gnome3
|
||||||
|
, gi-docgen
|
||||||
|
, makeFontsConf
|
||||||
|
, freefont_ttf
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, glib
|
||||||
, x11Support? !stdenv.isDarwin, libXft
|
, x11Support? !stdenv.isDarwin, libXft
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
let
|
|
||||||
pname = "pango";
|
pname = "pango";
|
||||||
version = "1.47.0";
|
version = "1.48.3";
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "${pname}-${version}";
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0ry3j9n0lvdfmjwi2w7wa4gkalnip56kghqq6bh8hcf45xjvh3bk";
|
sha256 = "0ijbkcs6217ygzphlpi0vajxkccifdbsl0jdjpy8wz11h9f19sin";
|
||||||
};
|
};
|
||||||
|
|
||||||
# FIXME: docs fail on darwin
|
patches = [
|
||||||
outputs = [ "bin" "dev" "out" ] ++ optional (!stdenv.isDarwin) "devdoc";
|
# Install developer documentation.
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/pango/commit/a2f35860115e8cd44f07d5158e2df059e8163a08.patch";
|
||||||
|
sha256 = "hN7O4DBk4A+TmBl6DGx6RHni5qRBg6akdjv9o3iWKDQ=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson ninja
|
meson ninja
|
||||||
glib # for glib-mkenum
|
glib # for glib-mkenum
|
||||||
pkg-config gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43
|
pkg-config
|
||||||
|
gobject-introspection
|
||||||
|
gi-docgen
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fribidi
|
fribidi
|
||||||
libthai
|
libthai
|
||||||
] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||||
ApplicationServices
|
ApplicationServices
|
||||||
Carbon
|
Carbon
|
||||||
CoreGraphics
|
CoreGraphics
|
||||||
CoreText
|
CoreText
|
||||||
]);
|
]);
|
||||||
propagatedBuildInputs = [ cairo glib libintl harfbuzz ] ++
|
|
||||||
optional x11Support libXft;
|
|
||||||
|
|
||||||
mesonFlags = [
|
propagatedBuildInputs = [
|
||||||
"-Dgtk_doc=${if stdenv.isDarwin then "false" else "true"}"
|
cairo
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
glib
|
||||||
"-Dxft=disabled" # only works with x11
|
libintl
|
||||||
|
harfbuzz
|
||||||
|
] ++ lib.optionals x11Support [
|
||||||
|
libXft
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
mesonFlags = [
|
||||||
|
"-Dgtk_doc=true"
|
||||||
|
] ++ lib.optionals (!x11Support) [
|
||||||
|
"-Dxft=disabled" # only works with x11
|
||||||
|
];
|
||||||
|
|
||||||
# Fontconfig error: Cannot load default config file
|
# Fontconfig error: Cannot load default config file
|
||||||
FONTCONFIG_FILE = makeFontsConf {
|
FONTCONFIG_FILE = makeFontsConf {
|
||||||
fontDirectories = [ freefont_ttf ];
|
fontDirectories = [ freefont_ttf ];
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false; # /layout/valid-1.markup: FAIL
|
doCheck = false; # test-font: FAIL
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# So that devhelp can find this.
|
||||||
|
# https://gitlab.gnome.org/GNOME/pango/merge_requests/293/diffs#note_1058448
|
||||||
|
mkdir -p "$devdoc/share/devhelp"
|
||||||
|
mv "$out/share/doc/pango/reference" "$devdoc/share/devhelp/books"
|
||||||
|
rmdir -p --ignore-fail-on-non-empty "$out/share/doc/pango"
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome3.updateScript {
|
updateScript = gnome3.updateScript {
|
||||||
@ -73,7 +107,7 @@ in stdenv.mkDerivation rec {
|
|||||||
homepage = "https://www.pango.org/";
|
homepage = "https://www.pango.org/";
|
||||||
license = licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
|
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with maintainers; [ raskin ] ++ teams.gnome.members;
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, pango, glibmm, cairomm, gnome3
|
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, python3, pango, glibmm, cairomm, gnome3
|
||||||
, ApplicationServices }:
|
, ApplicationServices }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pangomm";
|
pname = "pangomm";
|
||||||
version= "2.42.1";
|
version= "2.42.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "03zli5amizhv9bfklwfq7xyf0b5dagchx1lnz9f0v1rhk69h9gql";
|
sha256 = "sha256-GyTJJiSuEnXMtXdYF10198Oa0zQtjAtLpg8NmEnS0Io=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ] ++ lib.optional stdenv.isDarwin [
|
nativeBuildInputs = [ pkg-config meson ninja python3 ] ++ lib.optional stdenv.isDarwin [
|
||||||
ApplicationServices
|
ApplicationServices
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [ pango glibmm cairomm ];
|
propagatedBuildInputs = [ pango glibmm cairomm ];
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
} :
|
} :
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "3.2.2";
|
version = "3.2.3";
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
pname = "pmix";
|
pname = "pmix";
|
||||||
@ -13,7 +13,7 @@ in stdenv.mkDerivation {
|
|||||||
repo = "openpmix";
|
repo = "openpmix";
|
||||||
owner = "openpmix";
|
owner = "openpmix";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1rf82z7h76366qknkmralmslsfmihv0r3ymhbgk1axq97ic3g4d7";
|
sha256 = "sha256-w3j4zgEAn6RxIHAvy0B3MPFTV46ocCvc0Z36tN1T+rc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "popt";
|
pname = "popt";
|
||||||
version = "1.16";
|
version = "1.18";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://debian/pool/main/p/popt/popt_${version}.orig.tar.gz";
|
url = "mirror://debian/pool/main/p/popt/popt_${version}.orig.tar.gz";
|
||||||
sha256 = "1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77";
|
sha256 = "1lf5zlj5rbg6s4bww7hbhpca97prgprnarx978vcwa0bl81vqnai";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = lib.optionals stdenv.isCygwin [
|
patches = lib.optionals stdenv.isCygwin [
|
||||||
|
@ -42,6 +42,14 @@ let
|
|||||||
USE_OPENMP = true;
|
USE_OPENMP = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
aarch64-darwin = {
|
||||||
|
BINARY = 64;
|
||||||
|
TARGET = setTarget "VORTEX";
|
||||||
|
DYNAMIC_ARCH = true;
|
||||||
|
USE_OPENMP = false;
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = "11.0";
|
||||||
|
};
|
||||||
|
|
||||||
aarch64-linux = {
|
aarch64-linux = {
|
||||||
BINARY = 64;
|
BINARY = 64;
|
||||||
TARGET = setTarget "ARMV8";
|
TARGET = setTarget "ARMV8";
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "suitesparse";
|
pname = "suitesparse";
|
||||||
version = "5.8.1";
|
version = "5.9.0";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" ];
|
outputs = [ "out" "dev" "doc" ];
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
owner = "DrTimothyAldenDavis";
|
owner = "DrTimothyAldenDavis";
|
||||||
repo = "SuiteSparse";
|
repo = "SuiteSparse";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0qjlyfxs8s48rs63c2fzspisgq1kk4bwkgnhmh125hgkdhrq2w1c";
|
sha256 = "sha256-tvwpSVgZrfYZHXHN8OQF0Y/aJM03JHGPFok7hUqPE/4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
|
|||||||
"CUBLAS_LIB=${cudatoolkit}/lib/libcublas.so"
|
"CUBLAS_LIB=${cudatoolkit}/lib/libcublas.so"
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
# Unless these are set, the build will attempt to use `Accelerate` on darwin, see:
|
# Unless these are set, the build will attempt to use `Accelerate` on darwin, see:
|
||||||
# https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/v5.8.1/SuiteSparse_config/SuiteSparse_config.mk#L368
|
# https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/v5.9.0/SuiteSparse_config/SuiteSparse_config.mk#L368
|
||||||
"BLAS=-lblas"
|
"BLAS=-lblas"
|
||||||
"LAPACK=-llapack"
|
"LAPACK=-llapack"
|
||||||
]
|
]
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "serd";
|
pname = "serd";
|
||||||
version = "0.30.4";
|
version = "0.30.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.drobilla.net/${pname}-${version}.tar.bz2";
|
url = "https://download.drobilla.net/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "168rn3m32c59qbar120f83ibcnnd987ij9p053kybgl7cmm6358c";
|
sha256 = "sha256-r/qA3ux4kh+GM15vw/GLgK7+z0JPaldV6fL6DrBxDt8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config python3 wafHook ];
|
nativeBuildInputs = [ pkg-config python3 wafHook ];
|
||||||
|
@ -12,12 +12,12 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sqlite";
|
pname = "sqlite";
|
||||||
version = "3.34.1";
|
version = "3.35.2";
|
||||||
|
|
||||||
# NB! Make sure to update ./tools.nix src (in the same directory).
|
# NB! Make sure to update ./tools.nix src (in the same directory).
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://sqlite.org/2021/sqlite-autoconf-${archiveVersion version}.tar.gz";
|
url = "https://sqlite.org/2021/sqlite-autoconf-${archiveVersion version}.tar.gz";
|
||||||
sha256 = "129ynp0qbxrfj1ys9hdi0jk8svds0cwfzl31af7bicqp25cclfra";
|
sha256 = "1bfczv5006ycwr1vw7xbq7cmys0jvfr8awmx7wi1b40zyj0yss8j";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" ];
|
outputs = [ "bin" "dev" "out" ];
|
||||||
|
@ -4,11 +4,11 @@ let
|
|||||||
archiveVersion = import ./archive-version.nix lib;
|
archiveVersion = import ./archive-version.nix lib;
|
||||||
mkTool = { pname, makeTarget, description, homepage }: stdenv.mkDerivation rec {
|
mkTool = { pname, makeTarget, description, homepage }: stdenv.mkDerivation rec {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
version = "3.34.1";
|
version = "3.35.2";
|
||||||
|
|
||||||
src = assert version == sqlite.version; fetchurl {
|
src = assert version == sqlite.version; fetchurl {
|
||||||
url = "https://sqlite.org/2021/sqlite-src-${archiveVersion version}.zip";
|
url = "https://sqlite.org/2021/sqlite-src-${archiveVersion version}.zip";
|
||||||
sha256 = "0jgzaawf6vn15qyi15b6dlq80sk2gaiwfikingldx5mhjrwj7pfx";
|
sha256 = "00w7qggrdxpcrs4rfpqkjhcghi8pcx6zzjim9wlz6vsrxlr9dwva";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
@ -48,11 +48,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tracker-miners";
|
pname = "tracker-miners";
|
||||||
version = "3.0.1";
|
version = "3.0.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1kfi5d6pccqx28hbnja6k1mpwjd53k5zs704sg01rlzmbshz1zn6";
|
sha256 = "sha256-E877xx1S93RvPTfQQdjFvBM2pA/13ZK1Nw6GUMJqiY4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchpatch
|
|
||||||
, gettext
|
, gettext
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
@ -30,13 +29,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tracker";
|
pname = "tracker";
|
||||||
version = "3.0.1";
|
version = "3.0.3";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1rhcs75axga7p7hl37h6jzb2az89jddlcwc7ykrnb2khyhka78rr";
|
sha256 = "sha256-b1yEqzvh7aUgUBsq7XIhYWoM8VKRDFN3V7U4vAXv/KM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -44,13 +43,6 @@ stdenv.mkDerivation rec {
|
|||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit asciidoc;
|
inherit asciidoc;
|
||||||
})
|
})
|
||||||
|
|
||||||
# Fix consistency error with sqlite 3.34
|
|
||||||
# https://gitlab.gnome.org/GNOME/tracker/merge_requests/353
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/tracker/commit/040e22d005985a19a0dc435a7631f91700804ce4.patch";
|
|
||||||
sha256 = "5OZj17XY8ZnXfMMim25HvGfFKUlsVlVHOUjZKfBKHcs=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "unixODBC";
|
pname = "unixODBC";
|
||||||
version = "2.3.7";
|
version = "2.3.9";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "ftp://ftp.unixodbc.org/pub/unixODBC/${pname}-${version}.tar.gz";
|
url = "ftp://ftp.unixodbc.org/pub/unixODBC/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0xry3sg497wly8f7715a7gwkn2k36bcap0mvzjw74jj53yx6kwa5";
|
sha256 = "sha256-UoM+rD1oHIsMmlpl8uvXRbOpZPII/HSPl35EAVoxsgc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [ "--disable-gui" "--sysconfdir=/etc" ];
|
configureFlags = [ "--disable-gui" "--sysconfdir=/etc" ];
|
||||||
|
@ -24,13 +24,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "vte";
|
pname = "vte";
|
||||||
version = "0.62.1";
|
version = "0.62.2";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "139had0zcggzrxx9rjy0a67mahzm474amafh168y11421iyfhsf3";
|
sha256 = "sha256-sDALvPDALfWBKhCjy45P/3I7q5LAjJegqQwWfPVDr/A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
@ -38,5 +38,5 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
xapian_1_4 = generic "1.4.17" "0bjpaavdckl4viznr8gbq476fvg648sj4rks2vacmc51vrb8bsxm";
|
xapian_1_4 = generic "1.4.18" "sha256-GW3btK0QRQEA8JkaWZ5O2UTLrZLkpv6BO+bc4WAkS3c=";
|
||||||
}
|
}
|
||||||
|
@ -4,52 +4,71 @@
|
|||||||
, isPy27
|
, isPy27
|
||||||
, ansible
|
, ansible
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, setuptools_scm
|
, ruamel-yaml
|
||||||
, ruamel_yaml
|
|
||||||
, rich
|
, rich
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytestcov
|
, pytest-xdist
|
||||||
, pytest_xdist
|
|
||||||
, git
|
, git
|
||||||
|
, wcmatch
|
||||||
|
, enrich
|
||||||
|
, python
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ansible-lint";
|
pname = "ansible-lint";
|
||||||
version = "4.3.7";
|
version = "5.0.2";
|
||||||
# pip is not able to import version info on raumel.yaml
|
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0kwwv9dv9rgsqvp15r2vma7hii9lkkqn0n2irvp5h32cbhzzq4hh";
|
sha256 = "sha256-vgt/KqNozTPaON/I19SybBZuo7bbl3Duq5dTBTMlj44=";
|
||||||
};
|
};
|
||||||
|
|
||||||
format = "pyproject";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
|
||||||
propagatedBuildInputs = [ pyyaml ansible ruamel_yaml rich ];
|
|
||||||
checkInputs = [ pytestCheckHook pytestcov pytest_xdist git ];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs bin/ansible-lint
|
substituteInPlace src/ansiblelint/file_utils.py \
|
||||||
substituteInPlace setup.cfg \
|
--replace 'raise RuntimeError("Unable to determine file type for %s" % pathex)' 'return "playbook"'
|
||||||
--replace "setuptools_scm_git_archive>=1.0" ""
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# give a hint to setuptools_scm on package version
|
buildInputs = [ python ];
|
||||||
preBuild = ''
|
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
|
propagatedBuildInputs = [ ansible enrich pyyaml rich ruamel-yaml wcmatch ];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook pytest-xdist git ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# ansible wants to write to $HOME and crashes if it can't
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
|
export PATH=$PATH:${lib.makeBinPath [ ansible ]}
|
||||||
|
|
||||||
|
# create a working ansible-lint executable
|
||||||
|
export PATH=$PATH:$PWD/src/ansiblelint
|
||||||
|
ln -rs src/ansiblelint/__main__.py src/ansiblelint/ansible-lint
|
||||||
|
patchShebangs src/ansiblelint/__main__.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
pytest -W ignore::DeprecationWarning -k 'not test_run_playbook_github and not test_run_single_role_path_no_trailing_slash_script'
|
# requires network
|
||||||
'';
|
"test_prerun_reqs_v1"
|
||||||
|
"test_prerun_reqs_v2"
|
||||||
|
# Assertion error with negative numbers; maybe requieres an ansible update?
|
||||||
|
"test_negative"
|
||||||
|
"test_example"
|
||||||
|
"test_playbook"
|
||||||
|
"test_included_tasks"
|
||||||
|
"test_long_line"
|
||||||
|
|
||||||
|
"test_get_yaml_files_umlaut"
|
||||||
|
"test_run_inside_role_dir"
|
||||||
|
"test_role_handler_positive"
|
||||||
|
];
|
||||||
|
|
||||||
|
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible ]}" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ansible/ansible-lint";
|
homepage = "https://github.com/ansible-community/ansible-lint";
|
||||||
description = "Best practices checker for Ansible";
|
description = "Best practices checker for Ansible";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.sengaya ];
|
maintainers = with maintainers; [ sengaya SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
22
pkgs/development/python-modules/bracex/default.nix
Normal file
22
pkgs/development/python-modules/bracex/default.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "bracex";
|
||||||
|
version = "2.1.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-AfcVzQ7XpiLsizIyLnFYE/dXTeUx8Jtw9vOywQ9oJCU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "bracex" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Bash style brace expansion for Python";
|
||||||
|
homepage = "https://github.com/facelessuser/bracex";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,61 +1,55 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage
|
{ lib
|
||||||
, nose
|
, buildPythonPackage
|
||||||
, parameterized
|
|
||||||
, mock
|
|
||||||
, flake8
|
|
||||||
, glibcLocales
|
|
||||||
, six
|
|
||||||
, jdatetime
|
|
||||||
, dateutil
|
|
||||||
, umalqurra
|
|
||||||
, pytz
|
|
||||||
, tzlocal
|
|
||||||
, regex
|
|
||||||
, ruamel_yaml
|
|
||||||
, python
|
|
||||||
, isPy3k
|
, isPy3k
|
||||||
|
, fetchFromGitHub
|
||||||
|
, dateutil
|
||||||
|
, pytz
|
||||||
|
, regex
|
||||||
|
, tzlocal
|
||||||
|
, hijri-converter
|
||||||
|
, convertdate
|
||||||
|
, parameterized
|
||||||
|
, pytestCheckHook
|
||||||
|
, GitPython
|
||||||
|
, ruamel_yaml
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dateparser";
|
pname = "dateparser";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = !isPy3k;
|
||||||
inherit pname version;
|
|
||||||
sha256 = "159cc4e01a593706a15cd4e269a0b3345edf3aef8bf9278a57dac8adf5bf1e4a";
|
src = fetchFromGitHub {
|
||||||
|
owner = "scrapinghub";
|
||||||
|
repo = "dateparser";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0i6ci14lqfsqrmaif57dyilrjbxzmbl98hps1b565gkiy1xqmjhl";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
flake8
|
|
||||||
nose
|
|
||||||
mock
|
|
||||||
parameterized
|
|
||||||
six
|
|
||||||
glibcLocales
|
|
||||||
];
|
|
||||||
preCheck =''
|
|
||||||
# skip because of missing convertdate module, which is an extra requirement
|
|
||||||
rm tests/test_jalali.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} -m unittest discover -s tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Strange
|
|
||||||
# AttributeError: 'module' object has no attribute 'config'
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
# install_requires
|
# install_requires
|
||||||
dateutil pytz regex tzlocal
|
dateutil pytz regex tzlocal
|
||||||
# extra_requires
|
# extra_requires
|
||||||
jdatetime ruamel_yaml umalqurra
|
hijri-converter convertdate
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
parameterized
|
||||||
|
pytestCheckHook
|
||||||
|
GitPython
|
||||||
|
ruamel_yaml
|
||||||
|
];
|
||||||
|
|
||||||
|
# Upstream only runs the tests in tests/ in CI, others use git clone
|
||||||
|
pytestFlagsArray = [ "tests" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "dateparser" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Date parsing library designed to parse dates from HTML pages";
|
description = "Date parsing library designed to parse dates from HTML pages";
|
||||||
homepage = "https://github.com/scrapinghub/dateparser";
|
homepage = "https://github.com/scrapinghub/dateparser";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, six, setuptools_scm, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, setuptools-scm
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-dateutil";
|
pname = "python-dateutil";
|
||||||
version = "2.8.1";
|
version = "2.8.1";
|
||||||
@ -8,19 +14,27 @@ buildPythonPackage rec {
|
|||||||
sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
|
sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
propagatedBuildInputs = [ six setuptools_scm ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [ six ];
|
||||||
py.test dateutil/test
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Requires fixing
|
# cyclic dependency: tests need freezegun, which depends on python-dateutil
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"dateutil.easter"
|
||||||
|
"dateutil.parser"
|
||||||
|
"dateutil.relativedelta"
|
||||||
|
"dateutil.rrule"
|
||||||
|
"dateutil.tz"
|
||||||
|
"dateutil.utils"
|
||||||
|
"dateutil.zoneinfo"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Powerful extensions to the standard datetime module";
|
description = "Powerful extensions to the standard datetime module";
|
||||||
homepage = "https://pypi.python.org/pypi/python-dateutil";
|
homepage = "https://github.com/dateutil/dateutil/";
|
||||||
license = "BSD-style";
|
license = with licenses; [ asl20 bsd3 ];
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
26
pkgs/development/python-modules/enrich/default.nix
Normal file
26
pkgs/development/python-modules/enrich/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, setuptools-scm, rich, pytest-mock }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "enrich";
|
||||||
|
version = "1.2.6";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-Dpn/V9h/e13vDKeZF+iPuTUaoNUuIo7ji/982FgxX+Q=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ setuptools-scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ rich ];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook pytest-mock ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "enrich" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Enrich adds few missing features to the wonderful rich library";
|
||||||
|
homepage = "https://github.com/pycontribs/enrich";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
@ -9,11 +9,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "more-itertools";
|
pname = "more-itertools";
|
||||||
version = "8.6.0";
|
version = "8.7.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "b3a9005928e5bed54076e6e549c792b306fddfe72b2d1d22dd63d42d5d3899cf";
|
sha256 = "c5d6da9ca3ff65220c3bfd2a8db06d698f05d4d2b9be57e1deb2be5a45019713";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
@ -25,6 +25,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://more-itertools.readthedocs.org";
|
homepage = "https://more-itertools.readthedocs.org";
|
||||||
|
changelog = "https://more-itertools.readthedocs.io/en/stable/versions.html";
|
||||||
description = "Expansion of the itertools module";
|
description = "Expansion of the itertools module";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
, six
|
, six
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pretend
|
, pretend
|
||||||
, flit-core
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
flit-core
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyparsing six ];
|
propagatedBuildInputs = [ pyparsing six ];
|
||||||
@ -29,10 +29,6 @@ buildPythonPackage rec {
|
|||||||
pretend
|
pretend
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Prevent circular dependency
|
# Prevent circular dependency
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
36
pkgs/development/python-modules/pylitterbot/default.nix
Normal file
36
pkgs/development/python-modules/pylitterbot/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ lib
|
||||||
|
, authlib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, httpx
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pylitterbot";
|
||||||
|
version = "2021.2.5";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "natekspencer";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0705bxm0rlpgwg8my7z5pp6y362bs2j53zy1yslha0ya6cgx37g8";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
authlib
|
||||||
|
httpx
|
||||||
|
];
|
||||||
|
|
||||||
|
# Project has no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "pylitterbot" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python package for controlling a Litter-Robot";
|
||||||
|
homepage = "https://github.com/natekspencer/pylitterbot";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -9,7 +9,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0kx4mbs9bflycd8x9af0idcjhdgnzri3nw1qb0vpfyb3751qaaf9";
|
sha256 = "0kx4mbs9bflycd8x9af0idcjhdgnzri3nw1qb0vpfyb3751qaaf9";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest aiohttp ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ aiohttp ];
|
||||||
|
|
||||||
# There are no tests
|
# There are no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -21,10 +21,12 @@ buildPythonPackage rec {
|
|||||||
sed -i "s/'setuptools-markdown'//g" setup.py
|
sed -i "s/'setuptools-markdown'//g" setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
# requires pandoc < 2.0
|
# requires pandoc < 2.0
|
||||||
# buildInputs = [ setuptools-markdown ];
|
# buildInputs = [ setuptools-markdown ];
|
||||||
checkInputs = [ mock ];
|
checkInputs = [ mock ];
|
||||||
propagatedBuildInputs = [ ansible pytest ];
|
propagatedBuildInputs = [ ansible ];
|
||||||
|
|
||||||
# tests not included with release, even on github
|
# tests not included with release, even on github
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -16,10 +16,11 @@ buildPythonPackage rec {
|
|||||||
sha256 = "de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15";
|
sha256 = "de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
six
|
six
|
||||||
pytest
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# The tests requires astropy, which itself requires
|
# The tests requires astropy, which itself requires
|
||||||
|
@ -31,8 +31,7 @@ buildPythonPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
propagatedBuildInputs = [
|
|
||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -25,9 +25,10 @@ buildPythonPackage rec {
|
|||||||
setuptools_scm
|
setuptools_scm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
hypothesis
|
hypothesis
|
||||||
pytest
|
|
||||||
pytest-astropy-header
|
pytest-astropy-header
|
||||||
pytest-doctestplus
|
pytest-doctestplus
|
||||||
pytest-filter-subpackage
|
pytest-filter-subpackage
|
||||||
|
@ -22,7 +22,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1yqzz44as4pxffmg4hk9lijvnvlc2chg1maq1fbj5i4k4jpagvjz";
|
sha256 = "1yqzz44as4pxffmg4hk9lijvnvlc2chg1maq1fbj5i4k4jpagvjz";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ glob2 Mako parse parse-type py pytest six ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ glob2 Mako parse parse-type py six ];
|
||||||
|
|
||||||
# Tests require extra dependencies
|
# Tests require extra dependencies
|
||||||
checkInputs = [ execnet mock pytest ];
|
checkInputs = [ execnet mock pytest ];
|
||||||
|
@ -19,7 +19,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1hslzzinpwc1zqhbpllqh3sllmiyk69pcycl7ahr0rz3micgwczj";
|
sha256 = "1hslzzinpwc1zqhbpllqh3sllmiyk69pcycl7ahr0rz3micgwczj";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest py-cpuinfo ] ++ lib.optionals (pythonOlder "3.4") [ pathlib statistics ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ py-cpuinfo ] ++ lib.optionals (pythonOlder "3.4") [ pathlib statistics ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Py.test fixture for benchmarking code";
|
description = "Py.test fixture for benchmarking code";
|
||||||
|
@ -16,7 +16,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ black pytest toml ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ black toml ];
|
||||||
|
|
||||||
# does not contain tests
|
# does not contain tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1i01i5ab06ic11na13gcacrlcs2ab6rmaii0yz0x06z5ynnljn6s";
|
sha256 = "1i01i5ab06ic11na13gcacrlcs2ab6rmaii0yz0x06z5ynnljn6s";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -19,8 +19,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "197nvlqlyfrqpy5lrkmfh1ywpr6j9zipxl9d7syg2a2n7jz3a8rj";
|
sha256 = "197nvlqlyfrqpy5lrkmfh1ywpr6j9zipxl9d7syg2a2n7jz3a8rj";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pytest
|
|
||||||
click
|
click
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b";
|
sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
|
@ -17,10 +17,11 @@ buildPythonPackage rec {
|
|||||||
sha256 = "fb083925a17ce636f33997c275f61123e63372c1db11fefac1e991ed25a4ca37";
|
sha256 = "fb083925a17ce636f33997c275f61123e63372c1db11fefac1e991ed25a4ca37";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six
|
six
|
||||||
numpy
|
numpy
|
||||||
pytest
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -21,10 +21,11 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0v6b4ly0p8nknpnp3f4dbslfsifzzjx2vv27rfylx04kzdhg4m9p";
|
sha256 = "0v6b4ly0p8nknpnp3f4dbslfsifzzjx2vv27rfylx04kzdhg4m9p";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
factory_boy
|
factory_boy
|
||||||
inflection
|
inflection
|
||||||
pytest
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -21,8 +21,9 @@ buildPythonPackage rec {
|
|||||||
setuptools_scm
|
setuptools_scm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pytest
|
|
||||||
pytest-doctestplus
|
pytest-doctestplus
|
||||||
pytestcov
|
pytestcov
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
@ -15,8 +15,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "bf070c5485dad82d5b5f5d0eb08d269737e378492d9a68f5223b0a90924c7754";
|
sha256 = "bf070c5485dad82d5b5f5d0eb08d269737e378492d9a68f5223b0a90924c7754";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
propagatedBuildInputs = [ pyflakes ];
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
propagatedBuildInputs = [ pytest pyflakes ];
|
|
||||||
|
|
||||||
# no longer passes
|
# no longer passes
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -12,8 +12,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pytest
|
|
||||||
flask
|
flask
|
||||||
werkzeug
|
werkzeug
|
||||||
];
|
];
|
||||||
|
@ -12,7 +12,8 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
propagatedBuildInputs = [ pytest pytest-metadata ];
|
buildInputs = [ pytest ];
|
||||||
|
propagatedBuildInputs = [ pytest-metadata ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Plugin for generating HTML reports";
|
description = "Plugin for generating HTML reports";
|
||||||
|
@ -18,9 +18,10 @@ buildPythonPackage rec {
|
|||||||
sha256 = "08idd3y6khxjqkn46diqvkjvsl4w4pxhl6z1hspbkrj0pqwf9isi";
|
sha256 = "08idd3y6khxjqkn46diqvkjvsl4w4pxhl6z1hspbkrj0pqwf9isi";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
httpx
|
httpx
|
||||||
pytest
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -11,7 +11,7 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
propagatedBuildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Plugin for accessing test session metadata";
|
description = "Plugin for accessing test session metadata";
|
||||||
|
@ -18,7 +18,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest mypy filelock ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ mypy filelock ];
|
||||||
|
|
||||||
# does not contain tests
|
# does not contain tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -20,8 +20,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pytest
|
|
||||||
psutil
|
psutil
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "9c9e4f1b060414c642e88ad98ca60f1fd37937debd704bd8f4a2ef8e08b9cb6d";
|
sha256 = "9c9e4f1b060414c642e88ad98ca60f1fd37937debd704bd8f4a2ef8e08b9cb6d";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
@ -21,8 +21,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pytest
|
|
||||||
pylint
|
pylint
|
||||||
six
|
six
|
||||||
toml
|
toml
|
||||||
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0qhxh0z2b3p52v3i0za9mrmjnb1nlvvyi2g23rf88b3xrrm59z33";
|
sha256 = "0qhxh0z2b3p52v3i0za9mrmjnb1nlvvyi2g23rf88b3xrrm59z33";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
setuptools_scm
|
setuptools_scm
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
buildInputs = [
|
||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jbasko/pytest-random-order";
|
homepage = "https://github.com/jbasko/pytest-random-order";
|
||||||
|
@ -14,9 +14,10 @@ buildPythonPackage rec {
|
|||||||
sha256 = "e20c58d4b7c359c4975dc3c3d3d67be0905180d2368be0be3ae09b15a136cfc0";
|
sha256 = "e20c58d4b7c359c4975dc3c3d3d67be0905180d2368be0be3ae09b15a136cfc0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six
|
six
|
||||||
pytest
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -11,9 +11,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1cb11a17fc121b3918414eb5eaf314ee325f2e693ac7cb3f6abf7560790827f2";
|
sha256 = "1cb11a17fc121b3918414eb5eaf314ee325f2e693ac7cb3f6abf7560790827f2";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ mock pytest ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytest ];
|
checkInputs = [ mock pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test test_pytest_rerunfailures.py
|
py.test test_pytest_rerunfailures.py
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, aiohttp
|
||||||
, async_generator
|
, async_generator
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, doCheck ? true
|
, doCheck ? true
|
||||||
@ -21,7 +22,10 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1zpgnw1lqbll59chv4hgcn31mdql1nv4gw9crbihky3ly3d3ncqi";
|
sha256 = "1zpgnw1lqbll59chv4hgcn31mdql1nv4gw9crbihky3ly3d3ncqi";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
async_generator
|
async_generator
|
||||||
httpx
|
httpx
|
||||||
pytest
|
pytest
|
||||||
|
@ -25,10 +25,11 @@ buildPythonPackage rec {
|
|||||||
toml
|
toml
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
psutil
|
psutil
|
||||||
pytest
|
|
||||||
zc_lockfile
|
zc_lockfile
|
||||||
] ++ lib.optional (!isPy3k) subprocess32;
|
] ++ lib.optional (!isPy3k) subprocess32;
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user