Commit Graph

429 Commits

Author SHA1 Message Date
Sandro Jäckel
ab8bf8c35b
lib/modules: improve error message when option is being accessed that isn't defined 2024-09-01 23:29:21 +02:00
Silvan Mosberger
65e7143039 nix-info: Format files with nixfmt
This is a rare case of a Nix file actually ending up in the build result.
We reformat this now, causing a rebuild, so that we won't cause a rebuild
in the treewide reformatting PR.
2024-08-25 04:59:04 +02:00
Bryan Lai
0d077cbecb nix-melt: bump deps harder to fix rust 1.80 build
With: cargo update time --recursive

It turns out that in this case a simple `cargo update time` is
not enough to fix the build; one also needs to add the `--recursive`
flag.
2024-08-24 17:49:34 +02:00
ghpzin
7f907528a8 fh: 0.1.10 -> 0.1.16, fix build 2024-08-19 08:11:23 +02:00
K900
11ce9983ff nix-init: 0.3.1 -> 0.3.2 2024-08-16 09:18:01 +03:00
Sandro
6c6d28888b
Merge pull request #334556 from bryango/nix-melt-rust-1.80-fix-build 2024-08-14 11:05:11 +02:00
Bryan Lai
1d28ed3c3a nix-melt: fix build for rust 1.80 2024-08-14 15:51:28 +08:00
R. Ryantm
e1822b634c nix-init: 0.3.0 -> 0.3.1 2024-08-14 05:16:12 +00:00
Julius Michaelis
6a9beaf893 treewide: skip generating shell completions using $out/bin/… when cross compiling
This focuses on Rust packages, since the most commonly used argument
parser library (clap/structopt) makes the following pattern natural and
thus common:

  postInstall = ''
    installShellCompletion --cmd foo \
      --bash <($out/bin/foo completion bash) \
      …

This commit just guards those with

lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform)

splitting the string where unrelated actions are performed.
2024-08-04 10:50:48 +09:00
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
zimbatm
7266ad59ce nar-serve: move to by-name 2024-07-31 09:10:29 +02:00
zimbatm
31e5e88a93 nix-store-gcs-proxy: move to by-name 2024-07-31 09:10:29 +02:00
zimbatm
99dc6c2efa nixpkgs-fmt: move to by-name 2024-07-31 09:10:29 +02:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
maralorn
86f523c59d
nix-output-monitor: 2.1.2 -> 2.1.3 2024-07-28 21:38:18 +02:00
Vladimír Čunát
64c6a981fe
Merge branch 'master' into staging-next 2024-07-27 09:18:58 +02:00
Philip Taron
849cf13725
web-devmode: call as package 2024-07-26 13:43:59 -07:00
github-actions[bot]
2567b049bd
Merge master into staging-next 2024-07-25 18:00:59 +00:00
Rohit Singh
103bd1c792 nixci: add rsrohitsingh682 as a maintainer 2024-07-25 13:05:04 +05:30
Rohit Singh
991fbf2f10 nixci: 0.5.0 -> 1.0.0 2024-07-25 01:05:30 +05:30
github-actions[bot]
0d7af056e2
Merge staging-next into staging 2024-07-14 12:02:04 +00:00
Vladimír Čunát
211398c03e
Merge branch 'staging-next' into staging 2024-07-14 08:35:35 +02:00
Sigmanificient
512e8afdb9 treewide: remove unused occurence of stdenv (and other) arguments
format (will squash)
2024-07-14 04:32:56 +02:00
K900
3eeff54780 nixos/alsa: kill sound.enable and friends with fire 2024-07-13 13:56:18 +03:00
Martin Weinelt
176a56c40f
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
- pkgs/applications/misc/blender/default.nix
- pkgs/development/web/nodejs/nodejs.nix
2024-07-11 01:06:28 +02:00
Thiago Kenji Okada
c62ade3aed
Merge pull request #311811 from abathur/move_lore_overrides_to_passthru_staging
binlore: migrate override lore to package passthru
2024-07-09 22:02:23 +00:00
Felix Buehler
588cf387b3 nixos-option: fix self inclusive src (move src) 2024-07-08 20:57:17 +02:00
Vladimír Čunát
4c09ae2416
Merge branch 'staging-next' into staging 2024-07-08 10:43:15 +02:00
Pol Dellaiera
9895432600
Merge pull request #322024 from xzfc/cached-nix-shell
cached-nix-shell: 0.1.5 -> 0.1.6
2024-07-08 07:31:47 +02:00
Albert Safin
e170ba17d1 cached-nix-shell: 0.1.5 -> 0.1.6 2024-07-07 22:28:05 +00:00
Travis A. Everett
8f413d8a44 binlore: migrate override lore to package passthru
Lore overrides have been included with binlore's source up to now, but
this hasn't worked very well. (It isn't as easy to self-service for
people working in nixpkgs, and its use of partial pnames for matching
breaks down around some edge cases like version numbers appearing
early in perl pnames, or multiple packages having identical pnames.)
2024-07-04 11:15:05 -05:00
aleksana
1862813d11 treewide: convert cargoSha256 to cargoHash
This is done with the following bash script:

```
#!/usr/bin/env bash
process_line() {
    local filename=${1%:}
    if [[ $4 =~ \"(.*)\"\; ]]; then
      local sha256="${BASH_REMATCH[1]}"
    fi
    [[ -z $sha256 ]] && return 0
    local hash=$(nix hash to-sri --type sha256 $sha256)
    echo "Processing: $filename"
    echo "  $sha256 => $hash"
    sed -i "s|cargoSha256 = \"$sha256\"|cargoHash = \"$hash\"|"
$filename
}

# split output by line
grep -r 'cargoSha256 = ' . | while IFS= read -r line; do
    # split them further by space
    read -r -a parts <<< "$line"
    process_line "${parts[@]}"
done

```
2024-07-03 21:54:10 +08:00
aleksana
a9709c299b treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
Silvan Mosberger
10f928a5cf
Merge pull request #318890 from r-ryantm/auto-update/nixdoc
nixdoc: 3.0.5 -> 3.0.7
2024-06-26 22:25:29 +02:00
shivaraj-bh
d7e3fe582a nixci: 0.4.0 -> 0.5.0 2024-06-17 11:37:43 +05:30
R. Ryantm
8f530a144c nixdoc: 3.0.5 -> 3.0.7 2024-06-10 19:13:26 +00:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
R. Ryantm
06157e52f9 nixdoc: 3.0.2 -> 3.0.5 2024-05-21 19:07:20 +00:00
Martin Weinelt
78a9be2548
npins: fix darwin build 2024-05-20 23:30:45 +02:00
Andreas Rammhold
8066db1e3c npins: 0.2.2 -> 0.2.4 2024-05-12 13:00:42 +02:00
Weijia Wang
23cbc3c2b3 Merge branch 'master' into staging-next 2024-04-30 13:24:52 +02:00
K900
350fa79f10
Revert "nixos-option: fix self inclusive src" 2024-04-30 10:52:25 +03:00
github-actions[bot]
24c668d7e0
Merge master into staging-next 2024-04-29 00:02:23 +00:00
Felix Buehler
7a2b306001 nixos-option: fix self inclusive src 2024-04-28 23:28:46 +02:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
rewine
ae2e299fab
Merge pull request #305222 from shivaraj-bh/update-nixci
nixci: 0.2.0 -> 0.4.0
2024-04-20 21:58:54 +08:00
shivaraj-bh
5efa13b4a4 nixci: 0.2.0 -> 0.4.0; fix Darwin build
https://github.com/srid/nixci/releases/tag/0.4.0

Add SystemConfiguration and IOKit from apple_sdk to fix the darwin build failure
2024-04-20 17:59:37 +05:30
Anthony Roussel
ac0cdeb10c
nixpkgs-hammering: unstable-2023-11-06 -> unstable-2024-03-25 2024-04-06 14:11:37 +02:00
Anthony Roussel
9996f28455
nixpkgs-hammering: add passthru.updateScript 2024-04-06 14:11:37 +02:00