Skip to content

Commit

Permalink
Merge pull request #115435 from NixOS/staging-next
Browse files Browse the repository at this point in the history
Staging next
  • Loading branch information
FRidh authored Mar 19, 2021
2 parents fe7df3f + 1ecb97e commit f5e8bdd
Show file tree
Hide file tree
Showing 376 changed files with 3,994 additions and 2,501 deletions.
20 changes: 14 additions & 6 deletions doc/languages-frameworks/rust.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ For `cargoHash` you can use:
Per the instructions in the [Cargo Book](https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html)
best practices guide, Rust applications should always commit the `Cargo.lock`
file in git to ensure a reproducible build. However, a few packages do not, and
Nix depends on this file, so if it missing you can use `cargoPatches` to apply
it in the `patchPhase`. Consider sending a PR upstream with a note to the
Nix depends on this file, so if it is missing you can use `cargoPatches` to
apply it in the `patchPhase`. Consider sending a PR upstream with a note to the
maintainer describing why it's important to include in the application.

The fetcher will verify that the `Cargo.lock` file is in sync with the `src`
Expand Down Expand Up @@ -157,7 +157,7 @@ path) can be passed directly to `buildRustPackage`:

```nix
pkgs.rustPlatform.buildRustPackage {
(...)
/* ... */
target = "x86_64-fortanix-unknown-sgx";
}
```
Expand Down Expand Up @@ -192,6 +192,13 @@ rustPlatform.buildRustPackage {
Please note that the code will be compiled twice here: once in `release` mode
for the `buildPhase`, and again in `debug` mode for the `checkPhase`.

Test flags, e.g., `--features xxx/yyy`, can be passed to `cargo test` via the
`cargoTestFlags` attribute.

Another attribute, called `checkFlags`, is used to pass arguments to the test
binary itself, as stated
(here)[https://doc.rust-lang.org/cargo/commands/cargo-test.html].

#### Tests relying on the structure of the `target/` directory

Some tests may rely on the structure of the `target/` directory. Those tests
Expand Down Expand Up @@ -321,9 +328,10 @@ attributes can also be used:
variable `buildAndTestSubdir` can be used to build a crate in a
Cargo workspace. Additional maturin flags can be passed through
`maturinBuildFlags`.
* `cargoCheckHook`: run tests using Cargo. Additional flags can be
passed to Cargo using `checkFlags` and `checkFlagsArray`. By
default, tests are run in parallel. This can be disabled by setting
* `cargoCheckHook`: run tests using Cargo. The build type for checks
can be set using `cargoCheckType`. Additional flags can be passed to
the tests using `checkFlags` and `checkFlagsArray`. By default,
tests are run in parallel. This can be disabled by setting
`dontUseCargoParallelTests`.
* `cargoInstallHook`: install binaries and static/shared libraries
that were built using `cargoBuildHook`.
Expand Down
5 changes: 5 additions & 0 deletions lib/systems/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ rec {
powerpc64le = "ppc64le";
}.${final.parsed.cpu.name} or final.parsed.cpu.name;

darwinArch = {
armv7a = "armv7";
aarch64 = "arm64";
}.${final.parsed.cpu.name} or final.parsed.cpu.name;

emulator = pkgs: let
qemu-user = pkgs.qemu.override {
smartcardSupport = false;
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/redmine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let
unpack = id: (name: source:
pkgs.stdenv.mkDerivation {
name = "redmine-${id}-${name}";
buildInputs = [ pkgs.unzip ];
nativeBuildInputs = [ pkgs.unzip ];
buildCommand = ''
mkdir -p $out
cd $out
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/web-apps/dokuwiki.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ let
};
sourceRoot = ".";
# We need unzip to build this package
buildInputs = [ pkgs.unzip ];
nativeBuildInputs = [ pkgs.unzip ];
# Installing simply means copying all files to the output directory
installPhase = "mkdir -p $out; cp -R * $out/";
};
Expand All @@ -220,7 +220,7 @@ let
sha256 = "4de5ff31d54dd61bbccaf092c9e74c1af3a4c53e07aa59f60457a8f00cfb23a6";
};
# We need unzip to build this package
buildInputs = [ pkgs.unzip ];
nativeBuildInputs = [ pkgs.unzip ];
# Installing simply means copying all files to the output directory
installPhase = "mkdir -p $out; cp -R * $out/";
};
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/web-apps/wordpress.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ let
sha256 = "1rhba5h5fjlhy8p05zf0p14c9iagfh96y91r36ni0rmk6y891lyd";
};
# We need unzip to build this package
buildInputs = [ pkgs.unzip ];
nativeBuildInputs = [ pkgs.unzip ];
# Installing simply means copying all files to the output directory
installPhase = "mkdir -p $out; cp -R * $out/";
};
Expand All @@ -136,7 +136,7 @@ let
sha256 = "0rjwm811f4aa4q43r77zxlpklyb85q08f9c8ns2akcarrvj5ydx3";
};
# We need unzip to build this package
buildInputs = [ pkgs.unzip ];
nativeBuildInputs = [ pkgs.unzip ];
# Installing simply means copying all files to the output directory
installPhase = "mkdir -p $out; cp -R * $out/";
};
Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/dokuwiki.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
sha256 = "4de5ff31d54dd61bbccaf092c9e74c1af3a4c53e07aa59f60457a8f00cfb23a6";
};
# We need unzip to build this package
buildInputs = [ pkgs.unzip ];
nativeBuildInputs = [ pkgs.unzip ];
# Installing simply means copying all files to the output directory
installPhase = "mkdir -p $out; cp -R * $out/";
};
Expand All @@ -24,7 +24,7 @@ let
sha256 = "e40ed7dd6bbe7fe3363bbbecb4de481d5e42385b5a0f62f6a6ce6bf3a1f9dfa8";
};
# We need unzip to build this package
buildInputs = [ pkgs.unzip ];
nativeBuildInputs = [ pkgs.unzip ];
sourceRoot = ".";
# Installing simply means copying all files to the output directory
installPhase = "mkdir -p $out; cp -R * $out/";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/audio/espeak/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "0n86gwh9pw0jqqpdz7mxggllfr8k0r7pc67ayy7w5z6z79kig6mz";
};

buildInputs = [ unzip portaudio ];
nativeBuildInputs = [ unzip ];
buildInputs = [ portaudio ];

patches = [
./gcc6.patch
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/espeak/edit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "0x8s7vpb7rw5x37yjzy1f98m4f2csdg89libb74fm36gn8ly0hli";
};

nativeBuildInputs = [ pkg-config ];
buildInputs = [ unzip portaudio wxGTK ];
nativeBuildInputs = [ pkg-config unzip ];
buildInputs = [ portaudio wxGTK ];

# TODO:
# Uhm, seems like espeakedit still wants espeak-data/ in $HOME, even thought
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/audio/mp3gain/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ stdenv.mkDerivation {
sha256 = "0varr6y7k8zarr56b42r0ad9g3brhn5vv3xjg1c0v19jxwr4gh2w";
};

buildInputs = [ unzip mpg123 ];
nativeBuildInputs = [ unzip ];
buildInputs = [ mpg123 ];

sourceRoot = ".";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/mpg123/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
}:

stdenv.mkDerivation rec {
name = "mpg123-1.26.3";
name = "mpg123-1.26.4";

src = fetchurl {
url = "mirror://sourceforge/mpg123/${name}.tar.bz2";
sha256 = "0vkcfdx0mqq6lmpczsmpa2jsb0s6dryx3i7gvr32i3w9b9w9ij9h";
sha256 = "sha256-CBmRVA33pmaykEmthw8pPPoohjs2SIq01Yzqp7WEZFQ=";
};

outputs = [ "out" "conplay" ];
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/audio/pd-plugins/helmholtz/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ stdenv.mkDerivation {
sha256 = "0h1fj7lmvq9j6rmw33rb8k0byxb898bi2xhcwkqalb84avhywgvs";
};

buildInputs = [ unzip puredata ];
nativeBuildInputs = [ unzip ];
buildInputs = [ puredata ];

unpackPhase = ''
unzip $src
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/audio/pd-plugins/puremapping/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "1h7qgqd8srrxw2y1rkdw5js4k6f5vc8x6nlm2mq9mq9vjck7n1j7";
};

buildInputs = [ unzip puredata ];
nativeBuildInputs = [ unzip ];
buildInputs = [ puredata ];

unpackPhase = ''
unzip $src
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/audio/pd-plugins/timbreid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "14k2xk5zrzrw1zprdbwx45hrlc7ck8vq4drpd3l455i5r8yk4y6b";
};

buildInputs = [ unzip puredata fftw ];
nativeBuildInputs = [ unzip ];
buildInputs = [ puredata fftw ];

unpackPhase = ''
mkdir source
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/sunvox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
sha256 = "0lqzr68n2c6aifw2vbyars91wn1chmgb9xfdk463g4vjqiava3ih";
};

buildInputs = [ unzip ];
nativeBuildInputs = [ unzip ];

unpackPhase = "unzip $src";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/android-studio/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ let
sha256 = sha256Hash;
};

nativeBuildInputs = [ unzip ];
buildInputs = [
makeWrapper
unzip
];
installPhase = ''
cp -r . $out
Expand Down
13 changes: 11 additions & 2 deletions pkgs/applications/editors/edit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ stdenv.mkDerivation {
sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy";
};

nativeBuildInputs = [ unzip pkg-config cwebbin ];
buildInputs = [ ncurses libX11 libXft ];
nativeBuildInputs = [
unzip
pkg-config
cwebbin
];

buildInputs = [
ncurses
libX11
libXft
];

preBuild = ''
ctangle *.w
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/editors/fte/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
stdenv.mkDerivation rec {
name = "fte-0.50.02";

buildInputs = [ unzip perl libX11 libXpm gpm ncurses slang ];
nativeBuildInputs = [ unzip ];
buildInputs = [ perl libX11 libXpm gpm ncurses slang ];

ftesrc = fetchurl {
url = "mirror://sourceforge/fte/fte-20110708-src.zip";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/monodevelop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ stdenv.mkDerivation rec {
patchFlags = [ "-p2" ];
patches = [ ./git-revert-12d610fb3f6dce121df538e36f21d8c2eeb0a6e3.patch ];

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config unzip ];
buildInputs = [
autoconf automake shared-mime-info intltool
mono gtk-sharp-2_0 gnome-sharp unzip
mono gtk-sharp-2_0 gnome-sharp
dotnetPackages.NUnit
dotnetPackages.NUnitRunners
dotnetPackages.Nuget
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/netbeans/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ stdenv.mkDerivation {
ln -s ${desktopItem}/share/applications/* $out/share/applications
'';

nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl python unzip libicns imagemagick ];
nativeBuildInputs = [ makeWrapper unzip ];
buildInputs = [ perl python libicns imagemagick ];

meta = {
description = "An integrated development environment for Java, C, C++ and PHP";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/textadept/10/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ stdenv.mkDerivation rec {
version = "10.8";
pname = "textadept";

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config unzip ];
buildInputs = [
gtk2 ncurses glib unzip zip
gtk2 ncurses glib zip
];

src = fetchhg {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/textadept/11/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ stdenv.mkDerivation rec {
version = "11.0_beta";
pname = "textadept11";

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config unzip ];
buildInputs = [
gtk2 ncurses glib unzip zip
gtk2 ncurses glib zip
];

src = fetchFromGitHub {
Expand Down
8 changes: 3 additions & 5 deletions pkgs/applications/editors/vscode/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ in
'';
};

buildInputs = (if stdenv.isDarwin
then [ unzip ]
else [ gtk2 at-spi2-atk wrapGAppsHook ] ++ atomEnv.packages)
++ [ libsecret libXScrnSaver libxshmfence ];
buildInputs = [ libsecret libXScrnSaver libxshmfence ]
++ lib.optionals (!stdenv.isDarwin) ([ gtk2 at-spi2-atk wrapGAppsHook ] ++ atomEnv.packages);

runtimeDependencies = lib.optional (stdenv.isLinux) [ (lib.getLib systemd) fontconfig.lib libdbusmenu ];

nativeBuildInputs = lib.optional (!stdenv.isDarwin) autoPatchelfHook;
nativeBuildInputs = [unzip] ++ lib.optional (!stdenv.isDarwin) autoPatchelfHook;

dontBuild = true;
dontConfigure = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/avocode/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ stdenv.mkDerivation rec {
comment = "The bridge between designers and developers";
};

nativeBuildInputs = [makeWrapper wrapGAppsHook];
buildInputs = [ unzip gtk3 gnome3.adwaita-icon-theme ];
nativeBuildInputs = [makeWrapper wrapGAppsHook unzip];
buildInputs = [ gtk3 gnome3.adwaita-icon-theme ];

# src is producing multiple folder on unzip so we must
# override unpackCmd to extract it into newly created folder
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/graphics/imagej/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ let
url = "https://wsr.imagej.net/distros/cross-platform/ij150.zip";
sha256 = "97aba6fc5eb908f5160243aebcdc4965726693cb1353d9c0d71b8f5dd832cb7b";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ unzip ];
nativeBuildInputs = [ makeWrapper unzip ];
inherit jre;

# JAR files that are intended to be used by other packages
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/graphics/zgrviewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ stdenv.mkDerivation rec {
url = "mirror://sourceforge/zvtm/${pname}/${version}/${pname}-${version}.zip";
sha256 = "1yg2rck81sqqrgfi5kn6c1bz42dr7d0zqpcsdjhicssi1y159f23";
};
buildInputs = [jre unzip];
nativeBuildInputs = [ unzip ];
buildInputs = [jre];
buildPhase = "";
installPhase = ''
mkdir -p "$out"/{bin,share/java/zvtm/plugins,share/doc/zvtm}
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/kde/fetch.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WGET_ARGS=( http://download.kde.org/stable/release-service/20.12.1/src -A '*.tar.xz' )
WGET_ARGS=( http://download.kde.org/stable/release-service/20.12.2/src -A '*.tar.xz' )
Loading

0 comments on commit f5e8bdd

Please sign in to comment.