Commit Graph

101 Commits

Author SHA1 Message Date
quantenzitrone
93a668bc54 squashfs-tools: rename from squashfsTools, enable structuredAttrs
upstream package is called squashfs-tools and other distros also call the package this way https://repology.org/project/squashfs-tools
2026-08-17 14:32:21 +02:00
bitbloxhub
c831bab4ac appimageTools: warn on deprecated type-specific aliases
Also migrates away from them with these commands, using ast-grep 0.43.0
with these commands in bash (assisted by ChatGPT):
```bash
for old in extractType1 extractType2; do
  ast-grep \
    --lang nix \
    --pattern "\$TOOLS.$old" \
    --rewrite '$TOOLS.extract' \
    --update-all \
    pkgs
done

ast-grep \
  --lang nix \
  --pattern '$TOOLS.wrapType1' \
  --rewrite '$TOOLS.wrapType2' \
  --update-all \
  pkgs
```

Assisted-by: GPT-5.6-Sol Medium via ChatGPT
2026-07-30 00:21:21 +00:00
uku
2e8c34b71a appimageTools: support finalAttrs
Replaces function invocation with lib.extendMkDerivation.
Warning: wrapAppImage now takes a `contents` argument instead of `src`,
to avoid shadowing the original AppImage file (eg. when using wrapType2)
The extracted archive can be accessed in derivations via `finalAttrs.contents`
2026-07-25 23:06:41 +02:00
Eman Resu
f7f010d75a build-support/appimage: remove assertMsg usage 2026-05-26 14:14:28 -04:00
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
coolGi
240a5329a3 appimageTools: unset QT_PLUGIN_PATH to avoid conflict between QT versions packaged by system & appimage 2026-01-20 03:45:48 +10:30
quantenzitrone
ff9c1e95f3 glew{,_1_10}: move to pkgs/by-name, rename from glew110
this shouldn't create any rebuilds
2026-01-14 19:13:37 +01:00
Emily
f2b94e3da0 treewide: tbb -> onetbb 2025-09-15 17:29:35 +01:00
melvyn
436ea50742 appimageTools.defaultFhsEnvArgs: move libsecret to targetPkgs
The bitwarden appimage is x86_64 only and does not need i686 libsecret, which currently also fails to build
2025-08-19 09:59:11 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
zi3m5f
375458eb17 appimage-run: add xdg-user-dirs for flutter apps
Many flutter apps indirectly depend on `xdg-user-dir` being in PATH by using `path_provider` which in turn uses `xdg_directories`. See the flutter packages for more:

a87eddf0c2/packages/xdg_directories/lib/xdg_directories.dart (L188)
2025-07-23 08:32:18 -07:00
Janne Heß
25a38ebfb0 appimageTools: Drop gtk2
Should work since it's not in the linked excludelist anymore: https://github.com/AppImageCommunity/pkg2appimage/blob/master/excludelist
Ref: https://github.com/NixOS/nixpkgs/issues/410814

Tested by running `joplin-desktop`
2025-06-05 14:32:22 +02:00
jopejoe1
dc617af0c3 appimageTools.defaultFhsEnvArgs.multiPkgs: add brolti 2025-04-08 14:11:50 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Grimmauld
00130be6fd appimageTools: drop SDL1 from fhs environment 2025-01-24 13:05:57 +01:00
Philip Taron
8f78cb0e66 replaceVarsWith: fix checkPhase with dir set (#365347) 2024-12-15 19:10:57 -08:00
github-actions[bot]
095d892127 Merge master into staging-next 2024-12-15 18:04:15 +00:00
Arne Keller
41a204fe0f appimage-env: remove xorg.libxshmfence (#194230) 2024-12-15 19:00:33 +01:00
Wolfgang Walther
e58e0c158e various: replace substituteAll with replaceVarsWith
This covers cases which need to use replaceVarsWith because the use
isExecutable = true.
2024-12-15 13:35:30 +01:00
K900
d209d800b7 treewide: mesa -> libgbm (where appropriate)
This will likely break things, but anything broken should be easily noticeable.
2024-12-05 12:37:39 +03:00
github-actions[bot]
35ce54d1fd Merge master into staging-next 2024-12-05 00:15:50 +00:00
Philip Taron
1330ae4275 appimageTools: add libmpg123 to the environment (#347824) 2024-12-04 12:28:15 -08:00
K900
804c0bb0dc Merge remote-tracking branch 'origin/staging-next' into staging 2024-12-02 09:04:57 +03:00
Felix Buehler
0e6cb950cf appimageTools: deprecate name & version 2024-12-01 11:13:43 +01:00
FliegendeWurst
5d5ea9bbde appimageTools.extract: fix build with strictDeps = true 2024-11-23 10:48:09 +01:00
michaelBelsanti
3f6d80d322 appimageTools: add libmpg123 to the environment 2024-10-10 20:43:50 -04:00
alexyao2015
8658b1b648 appimage-run: Add libsecret for bitwarden
Previously running the Bitwarden AppImage would error.
This adds libsecret which resolves the error and allows the
Bitwarden AppImage to function normally.
2024-09-22 23:08:36 -05:00
Christoph Traut
20a037237c appimage-run: Expose $APPIMAGE
Is supposed to be visible by the AppImage: https://docs.appimage.org/packaging-guide/environment-variables.html
2024-07-24 15:17:30 +02:00
Martin Weinelt
7b8429bbc4 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/jaxtyping/default.nix
2024-07-02 12:08:49 +02:00
Jan Tojnar
b69ed4249d zenity: Move from gnome scope to top-level
It is widely used outside gnome, not much inside.
2024-07-01 08:26:47 +02:00
Emily
fbda1dbfd6 treewide: replace freeglut with libglut
Allow the macOS GLUT framework to be used automatically in many
cases. Packages that specifically search for freeglut or require its
additional APIs should still explicitly depend on it.

Deliberately skip the Haskell package set, which is mostly
automatically generated, and mupdf, which has its own fork of freeglut.
2024-06-22 18:06:51 +01:00
Martino Fontana
1ee25e4d13 wrapAppImage: default extraPkgs to pkgs: [ ]
Sane default in preparation for the next commit.
2024-05-13 20:32:47 +02:00
Peder Bergebakken Sundt
340d601e84 appimage: avoid setting name 2024-04-24 15:26:52 +02:00
Peder Bergebakken Sundt
90622c10bd appimageTools.wrapAppImage: passthru pname and version 2024-04-24 15:26:52 +02:00
Herman Fries
30f9f9c2e5 appimage-run: Add pipewire support 2024-02-18 22:34:27 +01:00
Martino Fontana
beae87d564 appimage-run: add libthai 2023-11-30 12:50:44 +01:00
Gabriel Volpe
4a2788ea2a appimageTools.extract: add postExtract option (#261190) 2023-10-19 08:23:57 +00:00
Evils
ef1b2ae152 appimage-run: add pciutils for FreeCAD 2023-09-28 19:15:01 +02:00
Atemu
f63a12f296 tree-wide: buildFHSUserEnv -> buildFHSEnv 2023-04-16 10:15:13 +02:00
davidak
2d605e1557 appimage-env: remove xorg.libxshmfence
was needed for apple-music-electron which is now EOL
2023-03-02 10:58:42 +01:00
Guillaume Girol
c1c6998684 Merge pull request #203598 from symphorien/appimage-owd
appimage-run: export OWD
2022-12-02 20:12:49 +00:00
Guillaume Girol
c0cdf0ad4b appimage-run: export OWD
documented here: https://docs.appimage.org/packaging-guide/environment-variables.html

Fixes #203330
2022-11-29 12:00:00 +00:00
Robert Schütz
547b3d2131 Merge pull request #202767 from dotlambda/appimageTools-python3
appimageTools: remove python2 from FHS env
2022-11-27 09:51:35 -08:00
figsoda
e2b62ea76c appimageTools.wrapType2: passthru src to make nix-update work 2022-11-25 21:41:37 -05:00
Robert Schütz
f76fb4ed68 appimageTools: remove python2 from FHS env
It has been EOL since January 1, 2020.
2022-11-25 09:04:06 -08:00
Martino Fontana
18a9211640 appimage-run: add vulkan-loader and libpulseaudio 2022-08-23 17:45:54 +02:00
Robert Scott
6095bc6eb2 appimageTools.wrapAppImage: default produced derivations to sourceProvenance binaryNativeCode 2022-06-11 17:17:12 +01:00
Rick van Schijndel
99b94f9522 Merge pull request #168713 from NixOS/appimage-drop-gconf
appimageTools.defaultFhsEnvArgs: Drop GConf
2022-06-03 19:25:26 +02:00
Pavol Rusnak
4b7a8ae947 treewide: refactor curlWithGnuTls into all-packages.nix 2022-04-30 18:56:59 +02:00
Jan Tojnar
fba8a1de00 appimageTools.defaultFhsEnvArgs: Drop GConf
It has been deprecated and unmaintained for years. And it would not work without the daemon anyway.
2022-04-14 23:31:36 +02:00