mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
Merge staging-next-21.11 into staging-21.11
This commit is contained in:
@@ -29,7 +29,7 @@ How to add a new (major) version of the Linux kernel to Nixpkgs:
|
||||
4. If needed you can also run `make menuconfig`:
|
||||
|
||||
```ShellSession
|
||||
$ nix-env -i ncurses
|
||||
$ nix-env -f "<nixpkgs>" -iA ncurses
|
||||
$ export NIX_CFLAGS_LINK=-lncurses
|
||||
$ make menuconfig ARCH=arch
|
||||
```
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
- nixpkgs:
|
||||
|
||||
- update pkg
|
||||
- `nix-env -i pkg-name -f <path to your local nixpkgs folder>`
|
||||
- `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
|
||||
- add pkg
|
||||
- Make sure it’s in `pkgs/top-level/all-packages.nix`
|
||||
- `nix-env -i pkg-name -f <path to your local nixpkgs folder>`
|
||||
- `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
|
||||
- _If you don’t want to install pkg in you profile_.
|
||||
- `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>/default.nix` and check results in the folder `result`. It will appear in the same directory where you did `nix-build`.
|
||||
- If you did `nix-env -i pkg-name` you can do `nix-env -e pkg-name` to uninstall it from your system.
|
||||
- `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>` and check results in the folder `result`. It will appear in the same directory where you did `nix-build`.
|
||||
- If you installed your package with `nix-env`, you can run `nix-env -e pkg-name` where `pkg-name` is as reported by `nix-env -q` to uninstall it from your system.
|
||||
|
||||
- NixOS and its modules:
|
||||
- You can add new module to your NixOS configuration file (usually it’s `/etc/nixos/configuration.nix`). And do `sudo nixos-rebuild test -I nixpkgs=<path to your local nixpkgs folder> --fast`.
|
||||
|
||||
@@ -15,12 +15,12 @@ Modes of use of `emscripten`:
|
||||
|
||||
If you want to work with `emcc`, `emconfigure` and `emmake` as you are used to from Ubuntu and similar distributions you can use these commands:
|
||||
|
||||
* `nix-env -i emscripten`
|
||||
* `nix-env -f "<nixpkgs>" -iA emscripten`
|
||||
* `nix-shell -p emscripten`
|
||||
|
||||
* **Declarative usage**:
|
||||
|
||||
This mode is far more power full since this makes use of `nix` for dependency management of emscripten libraries and targets by using the `mkDerivation` which is implemented by `pkgs.emscriptenStdenv` and `pkgs.buildEmscriptenPackage`. The source for the packages is in `pkgs/top-level/emscripten-packages.nix` and the abstraction behind it in `pkgs/development/em-modules/generic/default.nix`.
|
||||
This mode is far more power full since this makes use of `nix` for dependency management of emscripten libraries and targets by using the `mkDerivation` which is implemented by `pkgs.emscriptenStdenv` and `pkgs.buildEmscriptenPackage`. The source for the packages is in `pkgs/top-level/emscripten-packages.nix` and the abstraction behind it in `pkgs/development/em-modules/generic/default.nix`. From the root of the nixpkgs repository:
|
||||
* build and install all packages:
|
||||
* `nix-env -iA emscriptenPackages`
|
||||
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
The easiest way to get a working idris version is to install the `idris` attribute:
|
||||
|
||||
```ShellSession
|
||||
$ # On NixOS
|
||||
$ nix-env -i nixos.idris
|
||||
$ # On non-NixOS
|
||||
$ nix-env -i nixpkgs.idris
|
||||
$ nix-env -f "<nixpkgs>" -iA idris
|
||||
```
|
||||
|
||||
This however only provides the `prelude` and `base` libraries. To install idris with additional libraries, you can use the `idrisPackages.with-packages` function, e.g. in an overlay in `~/.config/nixpkgs/overlays/my-idris.nix`:
|
||||
|
||||
@@ -24,18 +24,10 @@ You can test building an Octave package as follows:
|
||||
$ nix-build -A octavePackages.symbolic
|
||||
```
|
||||
|
||||
When building Octave packages with `nix-build`, the `buildOctavePackage` function adds `octave-octaveVersion` to; the start of the package's name attribute.
|
||||
|
||||
This can be required when installing the package using `nix-env`:
|
||||
To install it into your user profile, run this command from the root of the repository:
|
||||
|
||||
```ShellSession
|
||||
$ nix-env -i octave-6.2.0-symbolic
|
||||
```
|
||||
|
||||
Although, you can also install it using the attribute name:
|
||||
|
||||
```ShellSession
|
||||
$ nix-env -i -A octavePackages.symbolic
|
||||
$ nix-env -f. -iA octavePackages.symbolic
|
||||
```
|
||||
|
||||
You can build Octave with packages by using the `withPackages` passed-through function.
|
||||
|
||||
@@ -58,13 +58,7 @@ in `all-packages.nix`. You can test building a Perl package as follows:
|
||||
$ nix-build -A perlPackages.ClassC3
|
||||
```
|
||||
|
||||
`buildPerlPackage` adds `perl-` to the start of the name attribute, so the package above is actually called `perl-Class-C3-0.21`. So to install it, you can say:
|
||||
|
||||
```ShellSession
|
||||
$ nix-env -i perl-Class-C3
|
||||
```
|
||||
|
||||
(Of course you can also install using the attribute name: `nix-env -i -A perlPackages.ClassC3`.)
|
||||
To install it with `nix-env` instead: `nix-env -f. -iA perlPackages.ClassC3`.
|
||||
|
||||
So what does `buildPerlPackage` do? It does the following:
|
||||
|
||||
@@ -135,9 +129,11 @@ This will remove the `-I` flags from the shebang line, rewrite them in the `use
|
||||
Nix expressions for Perl packages can be generated (almost) automatically from CPAN. This is done by the program `nix-generate-from-cpan`, which can be installed as follows:
|
||||
|
||||
```ShellSession
|
||||
$ nix-env -i nix-generate-from-cpan
|
||||
$ nix-env -f "<nixpkgs>" -iA nix-generate-from-cpan
|
||||
```
|
||||
|
||||
Substitute `<nixpkgs>` by the path of a nixpkgs clone to use the latest version.
|
||||
|
||||
This program takes a Perl module name, looks it up on CPAN, fetches and unpacks the corresponding package, and prints a Nix expression on standard output. For example:
|
||||
|
||||
```ShellSession
|
||||
|
||||
@@ -526,8 +526,8 @@ in {
|
||||
# FIXME(@Ma27) remove as soon as nextcloud properly supports
|
||||
# mariadb >=10.6.
|
||||
isUnsupportedMariadb =
|
||||
# All currently supported Nextcloud versions are affected.
|
||||
(versionOlder cfg.package.version "23")
|
||||
# All currently supported Nextcloud versions are affected (https://github.com/nextcloud/server/issues/25436).
|
||||
(versionOlder cfg.package.version "24")
|
||||
# This module uses mysql
|
||||
&& (cfg.config.dbtype == "mysql")
|
||||
# MySQL is managed via NixOS
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -4,12 +4,12 @@ let
|
||||
pythonEnv = python3.withPackages (ps: with ps; [ pyqt5_with_qtmultimedia ]);
|
||||
in mkDerivation {
|
||||
pname = "qarte";
|
||||
version = "4.12.0";
|
||||
version = "4.15.1";
|
||||
|
||||
src = fetchbzr {
|
||||
url = "http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4";
|
||||
rev = "56";
|
||||
sha256 = "0cq9dg04grl45xw43gi9wsb0vm8c4bcvh813h5lm4ry8b94lfx2i";
|
||||
rev = "67";
|
||||
sha256 = "sha256:0ajvrvpyqyyxnq9nv69p3sr6c1kplphvrpph75k76yl0av94j2s3";
|
||||
};
|
||||
|
||||
buildInputs = [ pythonEnv ];
|
||||
|
||||
@@ -304,7 +304,7 @@ clone_user_rev() {
|
||||
local rev="${3:-HEAD}"
|
||||
|
||||
if [ -n "$fetchLFS" ]; then
|
||||
tmpHomePath="$(mktemp -d -p nix-prefetch-git-tmp-home-XXXXXXXXXX)"
|
||||
tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")"
|
||||
exit_handlers+=(remove_tmpHomePath)
|
||||
HOME="$tmpHomePath"
|
||||
git lfs install
|
||||
|
||||
@@ -5,7 +5,7 @@ with lib; mkCoqDerivation rec {
|
||||
owner = "DeepSpec";
|
||||
inherit version;
|
||||
defaultVersion = with versions; switch coq.coq-version [
|
||||
{ case = range "8.10" "8.13"; out = "4.0.0"; }
|
||||
{ case = range "8.10" "8.14"; out = "4.0.0"; }
|
||||
] null;
|
||||
release."4.0.0".sha256 = "0h5rhndl8syc24hxq1gch86kj7mpmgr89bxp2hmf28fd7028ijsm";
|
||||
releaseRev = v: "${v}";
|
||||
|
||||
@@ -5,9 +5,13 @@ with lib; mkCoqDerivation {
|
||||
owner = "snu-sf";
|
||||
inherit version;
|
||||
defaultVersion = with versions; switch coq.coq-version [
|
||||
{ case = range "8.12" "8.15"; out = "4.1.2"; }
|
||||
{ case = range "8.9" "8.13"; out = "4.1.1"; }
|
||||
{ case = range "8.6" "8.13"; out = "4.0.2"; }
|
||||
{ case = isEq "8.5"; out = "1.2.8"; }
|
||||
] null;
|
||||
release."4.1.2".sha256 = "sha256:1l8mwakqp4wnppsldl8wp2j24h1jvadnvrsgf35xnvdyygypjp2v";
|
||||
release."4.1.1".sha256 = "1qap8cyv649lr1s11r7h5jzdjd4hsna8kph15qy5fw24h5nx6byy";
|
||||
release."4.0.2".sha256 = "1q96bsxclqx84xn5vkid501jkwlc1p6fhb8szrlrp82zglj58b0b";
|
||||
release."1.2.8".sha256 = "05fskx5x1qgaf9qv626m38y5izichzzqc7g2rglzrkygbskrrwsb";
|
||||
releaseRev = v: "v${v}";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
||||
, dune-configurator
|
||||
, seq
|
||||
, either, seq
|
||||
, gen, iter, ounit, qcheck, uutf
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
version = "3.4";
|
||||
version = "3.6.1";
|
||||
pname = "containers";
|
||||
|
||||
useDune2 = true;
|
||||
@@ -14,11 +14,11 @@ buildDunePackage rec {
|
||||
owner = "c-cube";
|
||||
repo = "ocaml-containers";
|
||||
rev = "v${version}";
|
||||
sha256 = "0ixpy81p6rc3lq71djfndb2sg2hfj20j1jbzzrrmgqsysqdjsgzz";
|
||||
sha256 = "sha256:1k8xrs3nki8g875sig9f5v6k4vwxrk5gn7ixrlkkys5ksbr4kis7";
|
||||
};
|
||||
|
||||
buildInputs = [ dune-configurator ];
|
||||
propagatedBuildInputs = [ seq ];
|
||||
propagatedBuildInputs = [ either seq ];
|
||||
|
||||
checkInputs = [ gen iter ounit qcheck uutf ];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "parany";
|
||||
version = "12.1.1";
|
||||
version = "12.1.2";
|
||||
|
||||
useDune2 = true;
|
||||
minimumOCamlVersion = "4.03.0";
|
||||
@@ -11,7 +11,7 @@ buildDunePackage rec {
|
||||
owner = "UnixJunkie";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0s2sbmywy4yyh69dcrcqd85hd8jcd7qgfczy79nam4bvn87bjm72";
|
||||
sha256 = "yOeJzb2Wr6jA4efI9/fuqDCl/Tza3zxT3YjAiJmhHHg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ocamlnet cpu ];
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, stdenv, fetchurl, bash, jre }:
|
||||
let
|
||||
mcVersion = "1.17.1";
|
||||
buildNum = "97";
|
||||
buildNum = "399";
|
||||
jar = fetchurl {
|
||||
url = "https://papermc.io/api/v1/paper/${mcVersion}/${buildNum}/download";
|
||||
sha256 = "sha256:0d7q6v5w872phcgkha7j5sxniqq9wqbh1jxdvyvy6d2jl74g1gzw";
|
||||
url = "https://papermc.io/api/v2/projects/paper/versions/${mcVersion}/builds/${buildNum}/downloads/paper-${mcVersion}-${buildNum}.jar";
|
||||
sha256 = "01374201dkzrx28phy87wji7kzjwx8bpjzv85bjl6672ziskbmpd";
|
||||
};
|
||||
in stdenv.mkDerivation {
|
||||
pname = "papermc";
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
{ lib, fetchFromGitHub, fetchpatch, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "heisenbridge";
|
||||
version = "1.7.0";
|
||||
version = "1.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hifi";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-rN+qoBS9zIy5EHlFQxgAlcz9haoYJNMKJ2wlS46UOi0=";
|
||||
sha256 = "sha256-q1Rj8BehvYnV/Kah5YKAxBUz4j9WziSqn1fVeaKpy7g=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Compatibility with aiohttp 3.8.0
|
||||
(fetchpatch {
|
||||
url = "https://github.com/hifi/heisenbridge/commit/cff5d33e0b617e6cf3a44dc00c72b98743175c9e.patch";
|
||||
sha256 = "sha256-y5X4mWvX1bq0XNZNTYUc0iK3SzvaHpS7px53I7xC9c8=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
echo "${version}" > heisenbridge/version.txt
|
||||
'';
|
||||
|
||||
@@ -540,6 +540,8 @@ in {
|
||||
|
||||
appdirs = callPackage ../development/python-modules/appdirs { };
|
||||
|
||||
appleseed = toPythonModule (pkgs.appleseed.override { python3 = self.python; });
|
||||
|
||||
applicationinsights = callPackage ../development/python-modules/applicationinsights { };
|
||||
|
||||
appnope = callPackage ../development/python-modules/appnope { };
|
||||
@@ -5398,10 +5400,10 @@ in {
|
||||
|
||||
opentracing = callPackage ../development/python-modules/opentracing { };
|
||||
|
||||
openvino = disabledIf isPy27 (toPythonModule (pkgs.openvino.override {
|
||||
openvino = toPythonModule (pkgs.openvino.override {
|
||||
inherit (self) python;
|
||||
enablePython = true;
|
||||
}));
|
||||
});
|
||||
|
||||
openwebifpy = callPackage ../development/python-modules/openwebifpy { };
|
||||
|
||||
@@ -8129,9 +8131,9 @@ in {
|
||||
|
||||
recaptcha_client = callPackage ../development/python-modules/recaptcha_client { };
|
||||
|
||||
recoll = disabledIf (!isPy3k) (toPythonModule (pkgs.recoll.override {
|
||||
recoll = toPythonModule (pkgs.recoll.override {
|
||||
python3Packages = self;
|
||||
}));
|
||||
});
|
||||
|
||||
recommonmark = callPackage ../development/python-modules/recommonmark { };
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ with self; with super; {
|
||||
inherit (pkgs) antlr4;
|
||||
};
|
||||
|
||||
appleseed = toPythonModule (pkgs.appleseed.override { inherit (self) python; });
|
||||
appleseed = disabled super.appleseed;
|
||||
|
||||
application = callPackage ../development/python-modules/application { };
|
||||
|
||||
@@ -380,6 +380,8 @@ with self; with super; {
|
||||
|
||||
openpyxl = callPackage ../development/python-modules/openpyxl/2.nix { };
|
||||
|
||||
openvino = disabled super.openvino;
|
||||
|
||||
openwrt-luci-rpc = disabled super.openwrt-luci-rpc;
|
||||
|
||||
opt-einsum = callPackage ../development/python-modules/opt-einsum/2.nix { };
|
||||
@@ -529,6 +531,8 @@ with self; with super; {
|
||||
|
||||
remotecv = callPackage ../development/python-modules/remotecv { };
|
||||
|
||||
recoll = disabled super.recoll;
|
||||
|
||||
rhpl = callPackage ../development/python-modules/rhpl { };
|
||||
|
||||
rivet = disabled super.rivet;
|
||||
@@ -625,6 +629,9 @@ with self; with super; {
|
||||
|
||||
tarman = callPackage ../development/python-modules/tarman { };
|
||||
|
||||
tensorflow-bin = disabled super.tensorflow-bin;
|
||||
tensorflow-bin_2 = disabled super.tensorflow-bin_2;
|
||||
|
||||
thumbor = callPackage ../development/python-modules/thumbor { };
|
||||
|
||||
tmdb3 = callPackage ../development/python-modules/tmdb3 { };
|
||||
|
||||
Reference in New Issue
Block a user