305 Commits
Author SHA1 Message Date
quantenzitrone 7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
Bobby Rong 1f92079057 timeshift: 25.12.3 -> 25.12.4
https://github.com/linuxmint/timeshift/compare/25.12.3...25.12.4
2026-01-09 21:59:32 +08:00
Bobby Rong 646d60caba timeshift: 25.12.1 -> 25.12.3
https://github.com/linuxmint/timeshift/compare/25.12.1...25.12.3
2026-01-07 23:07:56 +08:00
Bobby Rong 96ca26e50a timeshift: 25.12.0 -> 25.12.1
https://github.com/linuxmint/timeshift/compare/25.12.0...25.12.1
2025-12-14 16:38:21 +08:00
Bobby Rong fcb8a88a13 timeshift: 25.07.7 -> 25.12.0
https://github.com/linuxmint/timeshift/compare/25.07.7...25.12.0
2025-12-12 23:17:26 +08:00
Sandro Jäckel 20384a7f4e timeshift: add man output 2025-11-11 22:09:50 +01:00
Pol Dellaiera ea9c6a4144 timeshift: use util-linuxMinimal 2025-09-05 13:44:01 +02:00
Pol Dellaiera e8523e5c30 timeshift: remove with lib; from meta 2025-09-05 13:44:01 +02:00
Pol Dellaiera 5ba30f6bdd timeshift: use tag 2025-09-05 13:44:01 +02:00
Pol Dellaiera fd52eaec4f timeshift: use finalAttrs pattern 2025-09-05 13:43:28 +02:00
Bobby Rong 3ede2409d3 timeshift: 25.07.6 -> 25.07.7
https://github.com/linuxmint/timeshift/compare/25.07.6...25.07.7
2025-09-04 22:32:32 +08:00
Bobby Rong 17e7f404a5 timeshift: 25.07.5 -> 25.07.6
https://github.com/linuxmint/timeshift/compare/25.07.5...25.07.6
2025-08-28 09:17:55 +08:00
Bobby Rong 7fb6a85195 timeshift: 25.07.4 -> 25.07.5
https://github.com/linuxmint/timeshift/compare/25.07.4...25.07.5
2025-08-07 21:14:58 +08:00
Bobby Rong 287c975116 timeshift: 24.06.6 -> 25.07.4
https://github.com/linuxmint/timeshift/compare/24.06.6...25.07.4

The timeshift-launcher substitution upstreamed:
https://github.com/linuxmint/timeshift/commit/98af1049992693599be78528029abba5421c4f19

run-parts introduced in:
https://github.com/linuxmint/timeshift/commit/b20c307d455a04df3d8bcd2cf9eee01c26b5b999
2025-08-02 20:54:12 +08:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
SigmanificientandWeijia Wang 99f6d318cb restique: unstable-2022-11-29 -> 0-unstable-2024-10-20 2025-07-24 02:38:57 +02:00
awwpotato c79a19cea1 vorta: move to by-name 2025-06-23 18:08:13 -07:00
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera 65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Gaetan Lepage bfe27cf81c treewide: use a string for versionCheckProgramArg where possible 2025-04-05 14:45:13 +02:00
Sigmanificient 91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +01:00
ash 298a47d4af vorta: fix icons 2025-02-10 17:06:39 +00:00
misuzuandGitHub 5ebb27a7f2 timeshift: fix string substitution during the patchPhase (#362799) 2025-02-05 22:01:01 +02:00
Bobby RongandGitHub ab9e5e1535 Cinnamon updates 2025-01-11 (#372904) 2025-01-12 12:50:54 +08:00
Bobby Rong 58383419d9 timeshift: 24.06.5 -> 24.06.6
https://github.com/linuxmint/timeshift/compare/24.06.5...24.06.6
2025-01-11 11:00:27 +08:00
Gaetan Lepage aae7c1714e vorta: cleanup 2025-01-10 11:42:37 +01:00
rein 479fe8d580 vorta: 0.9.1 -> 0.10.3 & formatting fix 2025-01-06 16:01:26 +00:00
Bobby Rong f08e95b16f timeshift: Fix GCC 14 build
TeeJee.Process.c:1134:9: error: implicit declaration of function 'kill'
2024-12-23 23:19:02 +08:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Yueh-Shun Li c00b800033 timeshift: timeshift-launcher: hard-code the timeshift-gtk path 2024-12-07 22:02:15 +08:00
Yueh-Shun Li 8c5116e6a5 timeshift: explain the timeshift-launcher string substitution 2024-12-07 20:50:32 +08:00
Yueh-Shun Li b201cc703f timeshift: patch timeshift-launcher with escapeShellArg instead of a patch file 2024-12-07 20:50:27 +08:00
Yueh-Shun Li cb41be5586 timeshift: use substituteInPlace --replace-fail 2024-12-07 20:49:30 +08:00
Yueh-Shun Li f25c116707 timeshift: sort dependencies alphabetically 2024-12-07 17:16:34 +08:00
Yueh-Shun Li c6a09301bd timeshift: format expressions 2024-12-07 17:07:41 +08:00
Yueh-Shun Li 7d4576b814 timeshift: fix meta.longDescription (the wrapper part) 2024-12-06 22:10:48 +08:00
Yueh-Shun Li 74fc7ef8c2 timeshift: 24.06.3 -> 24.06.5 2024-12-06 22:02:40 +08:00
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Robert SchützandGitHub 08afffbd72 pika-backup: 0.7.2 -> 0.7.4 (#344297) 2024-09-26 07:16:42 -07:00
Fabian AffolterandGitHub 685c9078be python312Packages.pyunifiprotect: remove (#304195) 2024-09-25 09:12:42 +02:00
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Robert Schütz ec6b57768f pika-backup: 0.7.2 -> 0.7.4
Diff: https://gitlab.gnome.org/World/pika-backup/-/compare/v0.7.2...v0.7.4

Changelog: https://gitlab.gnome.org/World/pika-backup/-/blob/v0.7.4/CHANGELOG.md
2024-09-24 13:09:30 -07:00
Fabian Affolter e34a564dd1 unifi-protect-backup: format with nixfmt 2024-09-17 08:57:33 +02:00
Fabian Affolter fff94ade56 unifi-protect-backup: switch to uiprotect 2024-09-17 08:56:44 +02:00
R. Ryantm 42fdc711cc ludusavi: 0.24.3 -> 0.25.0 2024-08-19 14:34:42 +00:00
networkException de2ebd24b0 restic-integrity: 1.3.0 -> 1.3.1 2024-08-02 17:23:31 +02:00
networkException 3b97575e8a restic-integrity: add networkexception as maintainer 2024-07-30 19:22:19 +02:00
networkException b012a14847 restic-integrity: 1.2.2 -> 1.3.0 2024-07-30 19:21:32 +02:00
Jörg Thalheimandaleksana 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
Sigmanificient 6dd44107ac treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00