mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
Merge remote-tracking branch 'origin/staging-next' into staging
This commit is contained in:
commit
b24e9a53ca
219 changed files with 157 additions and 447 deletions
|
@ -5,12 +5,13 @@ configuration of your machine. Whenever you've [changed
|
||||||
something](#ch-configuration) in that file, you should do
|
something](#ch-configuration) in that file, you should do
|
||||||
|
|
||||||
```ShellSession
|
```ShellSession
|
||||||
# nixos-rebuild switch
|
$ nixos-rebuild switch --use-remote-sudo
|
||||||
```
|
```
|
||||||
|
|
||||||
to build the new configuration, make it the default configuration for
|
to build the new configuration as your current user, and as the root user,
|
||||||
booting, and try to realise the configuration in the running system
|
make it the default configuration for booting. `switch` will also try to
|
||||||
(e.g., by restarting system services).
|
realise the configuration in the running system (e.g., by restarting system
|
||||||
|
services).
|
||||||
|
|
||||||
::: {.warning}
|
::: {.warning}
|
||||||
This command doesn't start/stop [user services](#opt-systemd.user.services)
|
This command doesn't start/stop [user services](#opt-systemd.user.services)
|
||||||
|
@ -19,14 +20,23 @@ user services.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: {.warning}
|
::: {.warning}
|
||||||
These commands must be executed as root, so you should either run them
|
Applying a configuration is an action that must be done by the root user, so the
|
||||||
from a root shell or by prefixing them with `sudo -i`.
|
`switch`, `boot` and `test` commands should be ran with the `--use-remote-sudo`
|
||||||
|
flag. Despite its odd name, this flag runs the activation script with elevated
|
||||||
|
permissions, regardless of whether or not the target system is remote, without
|
||||||
|
affecting the other stages of the `nixos-rebuild` call. This allows unprivileged
|
||||||
|
users to rebuild the system and only elevate their permissions when necessary.
|
||||||
|
|
||||||
|
Alternatively, one can run the whole command as root while preserving user
|
||||||
|
environment variables by prefixing the command with `sudo -E`. However, this
|
||||||
|
method may create root-owned files in `$HOME/.cache` if Nix decides to use the
|
||||||
|
cache during evaluation.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
You can also do
|
You can also do
|
||||||
|
|
||||||
```ShellSession
|
```ShellSession
|
||||||
# nixos-rebuild test
|
$ nixos-rebuild test --use-remote-sudo
|
||||||
```
|
```
|
||||||
|
|
||||||
to build the configuration and switch the running system to it, but
|
to build the configuration and switch the running system to it, but
|
||||||
|
@ -37,7 +47,7 @@ configuration.
|
||||||
There is also
|
There is also
|
||||||
|
|
||||||
```ShellSession
|
```ShellSession
|
||||||
# nixos-rebuild boot
|
$ nixos-rebuild boot --use-remote-sudo
|
||||||
```
|
```
|
||||||
|
|
||||||
to build the configuration and make it the boot default, but not switch
|
to build the configuration and make it the boot default, but not switch
|
||||||
|
@ -47,7 +57,7 @@ You can make your configuration show up in a different submenu of the
|
||||||
GRUB 2 boot screen by giving it a different *profile name*, e.g.
|
GRUB 2 boot screen by giving it a different *profile name*, e.g.
|
||||||
|
|
||||||
```ShellSession
|
```ShellSession
|
||||||
# nixos-rebuild switch -p test
|
$ nixos-rebuild switch -p test --use-remote-sudo
|
||||||
```
|
```
|
||||||
|
|
||||||
which causes the new configuration (and previous ones created using
|
which causes the new configuration (and previous ones created using
|
||||||
|
@ -58,7 +68,7 @@ configurations.
|
||||||
A repl, or read-eval-print loop, is also available. You can inspect your configuration and use the Nix language with
|
A repl, or read-eval-print loop, is also available. You can inspect your configuration and use the Nix language with
|
||||||
|
|
||||||
```ShellSession
|
```ShellSession
|
||||||
# nixos-rebuild repl
|
$ nixos-rebuild repl
|
||||||
```
|
```
|
||||||
|
|
||||||
Your configuration is loaded into the `config` variable. Use tab for autocompletion, use the `:r` command to reload the configuration files. See `:?` or [`nix repl` in the Nix manual](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-repl.html) to learn more.
|
Your configuration is loaded into the `config` variable. Use tab for autocompletion, use the `:r` command to reload the configuration files. See `:?` or [`nix repl` in the Nix manual](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-repl.html) to learn more.
|
||||||
|
|
|
@ -2,11 +2,8 @@
|
||||||
|
|
||||||
lib.makeScope pkgs.newScope (self:
|
lib.makeScope pkgs.newScope (self:
|
||||||
let
|
let
|
||||||
gconf = pkgs.gnome2.GConf;
|
|
||||||
inherit (self) callPackage;
|
inherit (self) callPackage;
|
||||||
inheritedArgs = {
|
inheritedArgs = {
|
||||||
inherit gconf;
|
|
||||||
|
|
||||||
inherit (pkgs.darwin) sigtool;
|
inherit (pkgs.darwin) sigtool;
|
||||||
inherit (pkgs.darwin.apple_sdk.frameworks)
|
inherit (pkgs.darwin.apple_sdk.frameworks)
|
||||||
Accelerate AppKit Carbon Cocoa GSS ImageCaptureCore ImageIO IOKit OSAKit
|
Accelerate AppKit Carbon Cocoa GSS ImageCaptureCore ImageIO IOKit OSAKit
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
, dbus
|
, dbus
|
||||||
, emacsPackagesFor
|
, emacsPackagesFor
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, gconf
|
|
||||||
, gettext
|
, gettext
|
||||||
, giflib
|
, giflib
|
||||||
, glib-networking
|
, glib-networking
|
||||||
|
@ -73,7 +72,6 @@
|
||||||
, withDbus ? stdenv.isLinux
|
, withDbus ? stdenv.isLinux
|
||||||
, withGTK2 ? false
|
, withGTK2 ? false
|
||||||
, withGTK3 ? withPgtk && !noGui
|
, withGTK3 ? withPgtk && !noGui
|
||||||
, withGconf ? false
|
|
||||||
, withGlibNetworking ? withPgtk || withGTK3 || (withX && withXwidgets)
|
, withGlibNetworking ? withPgtk || withGTK3 || (withX && withXwidgets)
|
||||||
, withGpm ? stdenv.isLinux
|
, withGpm ? stdenv.isLinux
|
||||||
, withImageMagick ? lib.versionOlder version "27" && (withX || withNS)
|
, withImageMagick ? lib.versionOlder version "27" && (withX || withNS)
|
||||||
|
@ -126,7 +124,6 @@ assert withAcl -> stdenv.isLinux;
|
||||||
assert withAlsaLib -> stdenv.isLinux;
|
assert withAlsaLib -> stdenv.isLinux;
|
||||||
assert withGTK2 -> !(withGTK3 || withPgtk);
|
assert withGTK2 -> !(withGTK3 || withPgtk);
|
||||||
assert withGTK3 -> !withGTK2 || withPgtk;
|
assert withGTK3 -> !withGTK2 || withPgtk;
|
||||||
assert withGconf -> withX;
|
|
||||||
assert withGpm -> stdenv.isLinux;
|
assert withGpm -> stdenv.isLinux;
|
||||||
assert withNS -> stdenv.isDarwin && !(withX || variant == "macport");
|
assert withNS -> stdenv.isDarwin && !(withX || variant == "macport");
|
||||||
assert withPgtk -> withGTK3 && !withX;
|
assert withPgtk -> withGTK3 && !withX;
|
||||||
|
@ -224,8 +221,6 @@ mkDerivation (finalAttrs: {
|
||||||
jansson
|
jansson
|
||||||
libxml2
|
libxml2
|
||||||
ncurses
|
ncurses
|
||||||
] ++ lib.optionals withGconf [
|
|
||||||
gconf
|
|
||||||
] ++ lib.optionals withAcl [
|
] ++ lib.optionals withAcl [
|
||||||
acl
|
acl
|
||||||
] ++ lib.optionals withAlsaLib [
|
] ++ lib.optionals withAlsaLib [
|
||||||
|
|
|
@ -30,7 +30,6 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
makeBinaryWrapper
|
makeBinaryWrapper
|
||||||
wrapGAppsHook3
|
wrapGAppsHook3
|
||||||
python3.pkgs.pytest-runner
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "gh";
|
pname = "gh";
|
||||||
version = "2.56.0";
|
version = "2.57.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cli";
|
owner = "cli";
|
||||||
repo = "cli";
|
repo = "cli";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-PDw2u+2hMiPmQe1lnJXnZk8JVsti/j7Nq5Uv3b7RIk4=";
|
hash = "sha256-HNr/HBt1EqbV+/dLCztucmeAqw3jLPOgQ0WLPxGDYgY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-rMJWUm79/wBBdVvNdIQc7jqzxfDXphBvGYU3wD/BITk=";
|
vendorHash = "sha256-gPUEfdS4iEzMQGdUNKMmEGRug66NVcrV3zvmkoEsNGo=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
|
|
@ -2,19 +2,26 @@
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pkg-config,
|
|
||||||
efivar,
|
efivar,
|
||||||
|
nix-update-script,
|
||||||
|
pkg-config,
|
||||||
popt,
|
popt,
|
||||||
|
testers,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "efibootmgr";
|
pname = "efibootmgr";
|
||||||
version = "18";
|
version = "18";
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"man"
|
||||||
|
];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rhboot";
|
owner = "rhboot";
|
||||||
repo = "efibootmgr";
|
repo = "efibootmgr";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-DYYQGALEn2+mRHgqCJsA7OQCF7xirIgQlWexZ9uoKcg=";
|
hash = "sha256-DYYQGALEn2+mRHgqCJsA7OQCF7xirIgQlWexZ9uoKcg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -32,12 +39,18 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
installFlags = [ "prefix=${placeholder "out"}" ];
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
||||||
|
updateScript = nix-update-script { };
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
|
description = "Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
|
||||||
homepage = "https://github.com/rhboot/efibootmgr";
|
homepage = "https://github.com/rhboot/efibootmgr";
|
||||||
changelog = "https://github.com/rhboot/efibootmgr/releases/tag/${src.rev}";
|
changelog = "https://github.com/rhboot/efibootmgr/releases/tag/${finalAttrs.version}";
|
||||||
license = lib.licenses.gpl2Only;
|
license = lib.licenses.gpl2Only;
|
||||||
maintainers = with lib.maintainers; [ getchoo ];
|
maintainers = with lib.maintainers; [ getchoo ];
|
||||||
|
mainProgram = "efibootmgr";
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue