Commit Graph
100 Commits
Author SHA1 Message Date
Jan Tojnar a1baa4f0bf openexr: 2.5.2 → 2.5.3
https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v2.5.3

* Includes the musl patch.
* Also clean up a bit while at it:
    * libtool not necessary since CMake port
    * enableParallelBuilding is on by default with cmake
2020-08-15 08:33:38 +02:00
Jan Tojnar 0249afb0e7 fractal: 4.2.2 → 4.4.0
https://gitlab.gnome.org/GNOME/fractal/-/blob/4.4.0/fractal-gtk/res/org.gnome.Fractal.metainfo.xml.in.in#L21-49
2020-08-15 01:32:12 +02:00
Jan Tojnar 47d561b10f libinput: 1.15.6 -> 1.16.1
https://lists.freedesktop.org/archives/wayland-devel/2020-August/041578.html
https://lists.freedesktop.org/archives/wayland-devel/2020-August/041590.html
2020-08-14 21:28:29 +02:00
Jan Tojnar afe22f645a Merge branch 'staging-next' into staging 2020-08-13 21:59:15 +02:00
Jan Tojnar c35a75c28c Merge branch 'master' into staging-next 2020-08-13 21:58:53 +02:00
Jan Tojnar 0a4a62459a nixos/fontconfig: Reintroduce unversioned fonts.conf
Turns out lot of software (including Chromium) use bundled fontconfig
so we either need to wrap every one of those, or re-introduce the global unversioned config.
The latter is easier but weakens hermetic configs. But perhaps those are not really worth the effort.
2020-08-13 20:56:43 +02:00
Jan Tojnar e4eb966875 openexr: 2.4.1 -> 2.5.2
Needed to apply patch to fix pkg-config files so also removed patch that is unused since the switch to CMake during patches refactoring.
2020-08-12 21:03:44 +02:00
Jan Tojnar 74ea2b2123 meson: Fix rpath clearing
Meson allows projects to set `build_rpath` property, containing paths
that will be added during build but will be removed when installing.

When Meson removes build_rpath from `DT_RUNPATH` entry, it just writes
the shorter ␀-terminated new rpath over the old one to reduce
the risk of potentially breaking the ELF files
(when the linker does string de-duplication or something).
But this can cause much bigger problem for Nix, as it can produce
cut-in-half-by-␀ store path references.

For example, in systemd’s libudev, it was removing three `$ORIGIN`-relative paths from

    $ORIGIN/../libsystemd:$ORIGIN/../basic:$ORIGIN/../shared:…␀

resulting in the following `DT_RUNPATH` entry:

    …␀store/v589pqjhvxrj73g3r0xb41yr84z5pwb7-gcc-9.3.0-lib/lib␀

We previously handled this in `fix-rpath.patch` but the method we prevent
Meson from removing paths added to rpath through `NIX_LDFLAGS` was changed
during 0.55.0 update and I forgot about this second purpose of the patch.

Let’s re-add this clearing code, as it worked without issues for a long time.
2020-08-12 12:17:39 +02:00
Jan Tojnar d27f04e59a Merge pull request #94018 from r-ryantm/auto-update/gthree
gthree: 0.2.0 -> 0.9.0
2020-08-11 23:35:50 +02:00
Jan Tojnar 01ce25515e gnome-hexgl: 0.2.0 → unstable-2020-07-24
0.2.0 does not build against gthree 0.9.0
2020-08-11 23:20:28 +02:00
Jan Tojnar e4fc19e66e gthree: 0.2.0 -> 0.9.0 2020-08-11 23:20:18 +02:00
Jan Tojnar e8bfa708c4 meson: Fix rpath clearing
Meson allows projects to set `build_rpath` property, containing paths
that will be added during build but will be removed when installing.

When Meson removes build_rpath from `DT_RUNPATH` entry, it just writes
the shorter ␀-terminated new rpath over the old one to reduce
the risk of potentially breaking the ELF files
(when the linker does string de-duplication or something).
But this can cause much bigger problem for Nix, as it can produce
cut-in-half-by-␀ store path references.

For example, in systemd’s libudev, it was removing three `$ORIGIN`-relative paths from

    $ORIGIN/../libsystemd:$ORIGIN/../basic:$ORIGIN/../shared:…␀

resulting in the following `DT_RUNPATH` entry:

    …␀store/v589pqjhvxrj73g3r0xb41yr84z5pwb7-gcc-9.3.0-lib/lib␀

We previously handled this in `fix-rpath.patch` but the method we prevent
Meson from removing paths added to rpath through `NIX_LDFLAGS` was changed
during 0.55.0 update and I forgot about this second purpose of the patch.

Let’s re-add this clearing code, as it worked without issues for a long time.
2020-08-11 17:48:18 +02:00
Jan Tojnar 11da469fa5 Merge branch 'staging-next' into staging 2020-08-11 16:18:42 +02:00
Jan Tojnar d81afb382a Merge pull request #83021 from dasj19/gcstar-1.7.1
gcstar: init at 1.7.2 + perl package dependencies
2020-08-10 16:28:21 +02:00
Jan Tojnar 0c3b48b7f6 Merge pull request #94197 from CRTified/pkg/lottieconverter 2020-08-10 15:05:39 +02:00
Jan Tojnar 5edd18b7b6 Merge pull request #95064 from dasj19/gnome-mines-update
gnome-mines: 3.36.0 -> 3.36.1
2020-08-10 13:56:52 +02:00
Jan Tojnar 2d6cbbe462 meld: 3.20.2 → 3.21.0
Clean up, switch to Meson, remove unused test dependencies, fix license.

https://gitlab.gnome.org/GNOME/meld/-/blob/3.21.0/NEWS
2020-08-04 17:47:04 +02:00
Jan Tojnar 5b543ef214 Merge pull request #93011 from jtojnar/meson-0.55.0 2020-08-04 04:04:50 +02:00
Jan Tojnar ce6e35d1f5 bustle: fix build
Patches are part of Bustle 0.8.0.
2020-08-03 19:47:37 +02:00
Jan Tojnar 903f5dd519 Revert "pcsclite: Explicitly set ipcdir"
This reverts commit bc877d8bfc.

This is no longer necessary, since 1.9.0 finally uses /run by default.

https://salsa.debian.org/rousseau/PCSC/commit/562ef23bc7eab3d5cc49c38f7ac0c6341ade1130
2020-07-31 09:01:15 +02:00
Jan Tojnar a86f4110a7 Merge pull request #93771 from jtojnar/flatpak-1.8 2020-07-26 13:56:16 +02:00
Jan Tojnar d489409aaa Merge pull request #85976 from jtojnar/wrap-gapps-hook-tests 2020-07-26 13:55:35 +02:00
Jan Tojnar 5d3f240ebd Merge pull request #93712 from jtojnar/malcontent-0.8
malcontent: 0.7.0 → 0.8.0
2020-07-26 13:55:02 +02:00
Jan Tojnar 8935ddf8ca Merge pull request #93817 from albakham/pkg/sublime-music 2020-07-25 23:40:15 +02:00
Jan Tojnar 352749e577 ostree: enable ed25519 support
This was omitted in the latest update.

Only adds ~400 KB.

It required adding openssl to tests so I tacked on some cleanups.
In particular, the GI_TYPELIB_PATH was already being set in the wrapper
so we can remove it from the module (not sure why Gtk was even there).

Also switched away from using pkgconfig and docbook_xsl aliases
and reordered the expression a bit.
2020-07-25 12:54:18 +02:00
Jan Tojnar 379038b4dc nixosTests.flatpak: clean up
GNOME is not necessary. Portals probably are not either,
but the NixOS module requires them.

Not sure why it did not work without GNOME before.
2020-07-24 21:02:02 +02:00
Jan Tojnar 98710d2552 flatpak: 1.6.3 → 1.8.1
Changes:
* https://github.com/flatpak/flatpak/releases/tag/1.7.1
* https://github.com/flatpak/flatpak/releases/tag/1.7.2
* https://github.com/flatpak/flatpak/releases/tag/1.7.3
* https://github.com/flatpak/flatpak/releases/tag/1.8.0
* https://github.com/flatpak/flatpak/releases/tag/1.8.1

Commits:
https://github.com/flatpak/flatpak/compare/1.6.3...1.7.1
https://github.com/flatpak/flatpak/compare/1.7.1...1.8.1

Notable packaging changes:
* Flatpak now ships a sysusers.d file for allowing systemd to create the required users.
  https://github.com/flatpak/flatpak/commit/4df019063b962d17a378fb92d073f8ceb6a6ca62
* Completion support for fish shell
* If an app has filesystem access, the host /lib is accessible as /run/host/lib, etc.
* New filesystem permission "host-etc" and "host-os" give access to system /usr and /etc.
  https://github.com/flatpak/flatpak/commit/fe2536b8441858e3b22f6780dca64a516ee4e48c
* We now always expose the host timezone data, allowing us the expose the host /etc/localtime in a way that works better, fixing several apps that had timezone issues.
  https://github.com/flatpak/flatpak/commit/dc4e198766d91aa8871c276b9ed8d7f3ba003822
* We now ship a systemd unit (not installed by default) to automatically detect plugged in usb sticks with sideload repos.
* By default we no longer install the gdm env.d file, as the systemd generators work better
  https://github.com/flatpak/flatpak/commit/7c3a85bf4337874719324a03cc5875708c84ee85
* Use variant-schema-compiler for some GVariant code
  https://github.com/flatpak/flatpak/pull/3366
* zstd compression for oci deltas:
  https://github.com/flatpak/flatpak/commit/bfa71e208a3672d965f560fd5250787d9b933493

Additionally:
* Remove glibcLocales which is not used since 1.4 bump because glibc contains a locale archive with C.UTF-8
  https://github.com/NixOS/nixpkgs/commit/1728bc8d22ffe5e340dfb7cf3a8627f3638f5616
* Stop using aliases for docbook-xsl-nons and pkg-config packages
* Stop using autoreconfHook, the autogen.sh script contains some extra that are necessary when building from git.
* Increase disk space for installed tests, they were running out.
* Enable building developer documentation.
2020-07-24 19:38:51 +02:00
Jan Tojnar 8d53e88346 nixosTests.installed-tests.flatpak: Fix
Along with the `socat` fix in the parent commit, this makes
the Flatpak’s installed tests finally pass again.

The tests seem to need slightly over 2G of disk space,
and it appears that the test suite was ported to Python 3 in 1.5.1:
https://github.com/flatpak/flatpak/commit/2b6641575db75d8af8228749798f4ea635797577
2020-07-24 16:32:34 +02:00
Jan Tojnar 2bfa6aa848 nixosTests.installed-tests: Add the test data to VM closure
Flatpak’s installed tests build Flatpak runtimes, among other things.
Upstream code does this by copying some programs on `PATH`
as well as some possible dependencies from host’s /usr.
We patch the code to use `nix-store --query --requisites`
to make the dependency discovery easier.

The Flatpak’s installed tests add `socat` to `PATH` and later run
`nix-store --query --requisites` on its location but it was failing with

    error: path '/nix/store/qcyf7nq5vvfw32967sv4j6z190inrbrc-socat-1.7.3.4' is not valid

The issue occurred because, while the host Nix store is bind mounted into the test VM,
the VM’s store uses its own database that only contains the packages in the VM’s closure.
Since the test commands are not actually part of the VM but only passed through PTY,
the `flatpak.installedTests` derivation was not part of the VM’s closure, so `nix-store`
in the VM could not get information about its dependency `socat`.

Let’s make the `installedTests` of the tested package part of the test VM’s closure
by passing it as a global environment variable. This will also have the added benefit
that user no longer has to type the path when running the installed tests manually in the VM;
they can just use `gnome-desktop-testing-runner -d $TESTED_PACKAGE_INSTALLED_TESTS`,
which is much more conducive to tab completion.
2020-07-24 16:30:49 +02:00
Jan Tojnar 0be3b18d3e wrapGAppsHook: add comments 2020-07-24 00:36:12 +02:00
Jan Tojnar 49b89afcc2 wrapGAppsHook: add tests 2020-07-24 00:36:04 +02:00
Jan Tojnar 69b89979ba wrapGAppsHook: move to a separate file 2020-07-23 22:08:18 +02:00
Jan Tojnar 097117cf72 malcontent: 0.7.0 → 0.8.0
* Update: https://gitlab.freedesktop.org/pwithnall/malcontent/-/releases/0.8.0
    * Fix the separation patch.
    * Add `itstool` to ui (needed for building localized help).
* Use `pkg-config` instead of the `pkgconfig` alias.
* Fix some issues related to multiple outputs:
    * Make the module pass specific output to `dbus.packages` since the `dbus` NixOS module will not generate configuration with correct interface paths otherwise.
    * Change `malcontent-ui` package to primarily-a-program type derivation (`out`+`lib` instead of `bin`+`out`) since there are more and more `malcontent-control`-specific assets.
        * This also fixes the issue where application data (desktop files, icons…) were installed to `out`, which is not installed by `environment.systemPackages`/`system-path.nix`’s `buildEnv` by default when `bin` output is also present.
    * Make `malcontent` package install `out` output too so that `system-path.nix` links that too. It contains the AccountsService & Polkit data files.
    * Split the library and PAM module out of `malcontent.out` so that they are not installed with the data files.
        * This revealed a bug in the `gobject-introspection` setup hook.
2020-07-23 21:59:23 +02:00
Jan Tojnar 744b380a0e poppler: 0.90.0 → 0.90.1:
* Fix regression on PS conversion.
   Regression only happened on applications that are locale enabled
   i.e. Okular but not pdftops, when using a quite new lcms and
   the user locale uses , as decimal separator instead of .
 * Add UTF16LE support to TextStringToUCS4.
   Even if the standard clearly says it should be UTF16BE
2020-07-23 18:19:22 +02:00
Jan Tojnar cf64230d42 Merge branch 'staging-next' into staging 2020-07-23 08:32:33 +02:00
Jan Tojnar 2988feba8c Merge branch 'master' into staging-next 2020-07-23 08:19:14 +02:00
Jan Tojnar ce55b09ad5 python.pkgs.fontforge: disable with Python 2
Since the latest update, fontforge no longer supports building with Python 2. Let's prevent failing builds.
2020-07-23 08:14:28 +02:00
Jan Tojnar a2522c82a0 python3.pkgs.pygobject3: 3.36.0 → 3.36.1
https://ftp.gnome.org/pub/GNOME/sources/pygobject/3.36/pygobject-3.36.1.news
2020-07-22 16:53:59 +02:00
Jan Tojnar 83442a3533 Merge branch 'master' into staging-next 2020-07-20 02:16:21 +02:00
Jan Tojnar f1f038331f mypaint: 2.0.0 → 2.0.1
https://github.com/mypaint/mypaint/releases/tag/v2.0.1
2020-07-20 02:03:14 +02:00
Jan Tojnar ceb1527a61 Merge pull request #93409 from zowoq/gnome-ext-hooks
gnomeExtensions: add runHook to {build,install}Phase
2020-07-18 13:39:45 +02:00
Jan Tojnar 7dff6d6681 Merge pull request #93166 from jtojnar/cmake-docdir 2020-07-18 06:51:29 +02:00
Jan Tojnar 82c91e1306 Merge pull request #93045 from jtojnar/gnome-shell-cleanup
gnome3.gnome-shell: clean up
2020-07-18 06:51:08 +02:00
Jan Tojnar 43259950eb Merge pull request #92628 from jtojnar/update-overlays
update.nix: Allow passing overlays
2020-07-18 06:50:50 +02:00
Jan Tojnar fb7507d068 Merge pull request #92348 from jtojnar/explicit-only-gpl
licenses: Make single-version-only GPL explicit
2020-07-18 06:48:41 +02:00
Jan Tojnar 332fa4387f Merge pull request #93155 from rawkode/package/gnome-emoji-selector
gnomeExtensions.emoji-selector: init at v19
2020-07-16 11:23:44 +02:00
Jan Tojnar 11ae0fb1ad Merge pull request #93041 from jtojnar/flatpak-builder-1.0.11
flatpak-builder: 1.0.10 → 1.0.11
2020-07-16 07:15:56 +02:00
Jan Tojnar d49b38b73c Merge pull request #92715 from jtojnar/fix-libinput-commands 2020-07-16 04:58:38 +02:00
Jan Tojnar 812d124fbc Revert "darktable: Remove $out/share/doc"
This reverts commit 5d7cbc659e.
2020-07-16 04:38:08 +02:00
Jan Tojnar 2596c96f87 Revert "transmission: Remove $out/share/doc"
This reverts commit 25bc56fcb8.
2020-07-16 04:38:08 +02:00
Jan Tojnar 75fdc1ced6 cmake.setupHook: define shareDocName
The docdir flag needs to include `PROJECT_NAME` according to [GNU guidelines]. We are passing
`-DCMAKE_INSTALL_DOCDIR=${!outputDoc}/share/doc/${shareDocName}` but `$shareDocName` was unset.

The `multiple-outputs.sh` setup hook actually only defines `shareDocName` as a local variable
so it was not available for cmake setup hook. Making it global would be of limited usability,
since it primarily tries to extract the project name from configure script.
Additionally, it would not be set because the setup hook defines `setOutputFlags=`,
preventing the function defining `shareDocName` from running. And lastly, the function
would not run for single-output derivations.

Previously, we tried [not disabling `setOutputFlags`] and passing the directory flags
only for multi-output derivations that do not disable `setOutputFlags` but that meant having
two different branches of code, making it harder to check correctness. The multi-output
one did in fact not work due to aforementioned undefined `shareDocName`. It also broke
derivations that set `setOutputFlags=` like [`qtModule` function does] (probably
because some Qt modules have configure scripts incompatible with `configureFlags` defined
by `multiple-outputs.sh` setup hook). For that reason, it was [reverted], putting us back to start.

Let’s try to extract the project name from CMake in the cmake setup hook.

CMake has a `-L` flag for dumping variables but `PROJECT_NAME` did not seem to be among them
when I tested, so I had to resort to parsing the `CMakeLists.txt` file.

The extraction function is limited, it does not deal with

* project name on different line from the `project(` command opening
    - that will just not get matched so we will fall back to
      using the derivation name
* variable interpolation
    - we will just fall back to using derivation name when the extracted
      `project_name` contains a dollar character
* multiple [`project`] commands
    - The command sets `PROJECT_NAME` variable anew with each call, so the
      last `project` call before `include(GNUInstallDirs)` command will be used
      when the included module would [cache the `CMAKE_INSTALL_DOCDIR` variable].
      We will just take the first discovered `project` command for simplicity.
      Hopefully, there are not many projects that use multiple `project` calls
      before including `GNUInstallDirs`.

In either case, we will have some subdirectory so the conflicts will be minimized.

[GNU guidelines]: https://www.gnu.org/prep/standards/html_node/Directory-Variables.html#index-docdir
[not disabling `setOutputFlags`]: https://github.com/NixOS/nixpkgs/commit/be1b22538a60e52987d238bb11f93043682b6e9a
[`qtModule` function  does]: https://github.com/NixOS/nixpkgs/pull/12740
[reverted]: https://github.com/NixOS/nixpkgs/pull/92298
[`PROJECT_NAME`]: https://cmake.org/cmake/help/v3.18/variable/PROJECT_NAME.html
[`project`]: https://cmake.org/cmake/help/v3.18/command/project.html
[cache the `CMAKE_INSTALL_DOCDIR` variable]: https://github.com/Kitware/CMake/blob/92e30d576d66ac05254bba0f0ff7d655947beb0f/Modules/GNUInstallDirs.cmake#L298-L299
2020-07-16 04:38:07 +02:00
Jan Tojnar 821dba740e Merge branch 'staging-next' into staging 2020-07-15 09:29:01 +02:00
Jan Tojnar 5788f7173e Merge branch 'master' into staging-next 2020-07-15 09:25:28 +02:00
Jan Tojnar f83c9a7561 libevdev: fix aarch64 support 2020-07-15 06:15:16 +02:00
Jan Tojnar d9f416313a python3.pkgs.pyudev: do not propagate systemd
It is not linked against so there is no need to include it in build inputs, much less propagate it.

This removes systemd.dev from the runtime closure of packages using pyudev.
2020-07-15 06:15:16 +02:00
Jan Tojnar 6cf8110264 libinput: fix subcommands
Running subcommands like `libinput measure` requires python and some python modules.

I previously added the dependencies in [1] but [2] accidentally moved them to checkInputs so they are not available at runtime by patchShebangs (especially since tests are disabled).

Additionally, the tools were ported from evdev python module to python-libevdev in libinput 1.14, which was missed [3] during upgrade.

Finally, other python modules are needed so let's add them as well.

[1]: https://github.com/NixOS/nixpkgs/pull/51304
[2]: https://github.com/NixOS/nixpkgs/commit/de14f0c6e1247aa48b0d77c4a3390a61e020bebf
[3]: https://github.com/NixOS/nixpkgs/commit/b291f2a9953d48d6edc5c73776db9ba289ccf213
2020-07-15 06:15:16 +02:00
Jan Tojnar 7c75c1ed56 python3.pkgs.libevdev: enable tests 2020-07-15 06:15:15 +02:00
Jan Tojnar 10e5b931eb python3.pkgs.libevdev: hardcode path 2020-07-15 06:15:15 +02:00
Jan Tojnar 13e22e4607 nixosTests.gnome3: enable debug mode
The tests fail too often on Hydra without much of a hint what went wrong. Hopefully, this will provide some clue.
2020-07-14 04:35:15 +02:00
Jan Tojnar 4a48684965 gnome3.mutter: clean up
* upower no longer used – https://gitlab.gnome.org/GNOME/mutter/commit/fa9e330f2c6d3ec34ff57b2c67a9c75c09401014
* only libcanbera, not libcanberra-gtk is used
* cogl has been in-tree for ages
* geocode-glib has not been used ever?
* no need to have zenity in buildInputs, it is only needed in patch
* move patches attr after src
2020-07-13 10:21:24 +02:00
Jan Tojnar b491020081 gnome3.gnome-shell: build docs 2020-07-13 09:55:11 +02:00
Jan Tojnar 0937ea6dab gnome3.gnome-shell: Clean up
Remove the following dependencies:

* libcanberra – https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/327
* libsoup – https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/234
* libXtst – https://gitlab.gnome.org/GNOME/gnome-shell/commit/9f5a2d8aca5ae91be4cad12e6a3d02e1ac26e39a
* glibcLocales – no longer necessary since glibc now contains C.UTF-8 locale
* docbook-xsl-ns – not sure why this was included but there are no complaints when this is removed

Also move gnome-autoar & json-glib to proper section and drop unused clutter arg.
2020-07-13 09:50:14 +02:00
Jan Tojnar 8cddeef571 gnome3.gnome-shell: Format with nixpkgs-fmt
Also reorder and stop using aliases for pkg-config and docbook-xsl-{,no}ns.
2020-07-13 09:21:03 +02:00
Jan Tojnar 0e4bdc9f6e flatpak-builder: 1.0.10 → 1.0.11
https://github.com/flatpak/flatpak-builder/releases/tag/1.0.11

Also try to fix: https://github.com/NixOS/nixpkgs/issues/73325
2020-07-13 07:25:49 +02:00
Jan Tojnar cb9a3a0a32 Merge pull request #92926 from rawkode/gnomeExtensions/update-dash-to-panel
gnomeExtensions.dash-to-panel: 31 -> 38
2020-07-13 03:43:47 +02:00
Jan Tojnar 09558f1dbf Merge pull request #73795 from worldofpeace/fontconfig-2.13.92 2020-07-13 03:34:06 +02:00
Jan Tojnar d8ac41f863 meson: 0.54.2 → 0.55.0
https://mesonbuild.com/Release-notes-for-0-55-0.html
https://github.com/mesonbuild/meson/releases/tag/0.55.0
https://github.com/mesonbuild/meson/compare/0.54.2...0.55.0
2020-07-12 19:56:33 +02:00
Jan Tojnar c19222143e meson: clean up 2020-07-12 19:56:24 +02:00
Jan Tojnar 6f8345035b fontconfig: remove its rules from configs
ITS rules are used for extracting translatable strings and they have
been moved to external files in 2.13.92 so they are not needed in
the config files themselves.

Removing them also cuts down on errors/warnings produced when using
older versions of fontconfig (< 2.12.92). Now it will only complain
about the description element but that is fortunately just a warning,
not errors like the ones caused by the its attributes.

Thanks to this, we can change the config version in NixOS module
back to 2.11 allowing us to re-use the 2.13/2.14 configs for apps
built against 2.12 fontconfig.
2020-07-11 17:05:15 +02:00
Jan Tojnar 993deed7ab fontconfig: Load fonts also from FHS paths
With previous patch, we no longer load non-versioned fonts.conf file to avoid incompatibilities
but this also means fontconfig will not load system-wide installed fonts on non-NixOS systems.

As a compromise, let's hardcode the FHS font paths to the built-in config so that the system
fonts work there. Unlike with the system config we do not need to worry about compatibility as
incompatible font files will be simply ignored.

Of course there will still be disparity if the system install fonts to some other location than
these two but I am afraid this is the best we can do.

See https://github.com/NixOS/nixpkgs/pull/73795#issuecomment-635771967 for discussion.
2020-07-11 17:05:13 +02:00
Jan Tojnar edf2541f02 fontconfig: Only read versioned config dirs
Falling back to unversioned `/etc/fonts/conf.d` when versioned one does not exist
is problematic since it only occurs on non-NixOS systems and those are likely
to have a different version of fontconfig. When those versions use incompatible
elements in the config, apps using fontconfig will crash.

Instead, we are now falling back to the in-package `fonts.conf` file that loads
both the versioned global `conf.d` directory and the in-package `conf.d` since using
upstream settings on non-NixOS is preferable to not being able to use apps there.

In fact, we would not even need to link `fonts.conf`, as the in-package `fonts.conf`
will be always used unless someone creates the global one manually (the option is still
retained if one wants to write a custom NixOS module and to avoid unnecessary stat call on NixOS).

Additionally, since the `fonts.conf` will always load `conf.d` from the package, we no longer
need to install them to sytem `/etc` in the module. This needed some mucking with `50-user.conf`
which disables configs in user directories (a good thing IMO, NixOS module will turn it back on)
but otherwise, it is cleaner. The files are still prioritized by their name, regardless of their location.

See https://github.com/NixOS/nixpkgs/pull/73795#issuecomment-634370125 for more information.
2020-07-11 17:05:13 +02:00
Jan Tojnar 4be4ae71aa Merge pull request #92829 from r-ryantm/auto-update/poppler-glib
poppler: 0.89.0 -> 0.90.0
2020-07-10 23:20:42 +02:00
Jan Tojnar a23cb68ccf Merge pull request #92886 from jtojnar/fix/gse-sysmon 2020-07-10 20:35:40 +02:00
Jan Tojnar e96bf89d1e gnomeExtensions.system-monitor: unbreak with newer GNOME Shell
Had to switch to master and include Clutter typelib to path since recent versions of GNOME Shell open preferences out of Shell context.
2020-07-10 20:12:34 +02:00
Jan Tojnar a100503b08 gnome3.mutter: export libdir
It is needed for finding clutter & co. typelibs by extenstions.
2020-07-10 19:42:13 +02:00
Jan Tojnar 3abffce0d6 libmbim: 1.23.900 -> 1.24.0
* Enable introspection
* Clean up

https://lists.freedesktop.org/archives/libmbim-devel/2020-June/001105.html
2020-07-09 00:38:42 +02:00
Jan Tojnar 6dbcca5979 Merge pull request #85983 from lopsided98/gazebo-prereqs
urdfdom, console-bridge: init
2020-07-09 00:21:36 +02:00
Jan Tojnar 9b763e2e09 Merge pull request #92307 from lopsided98/jsoncpp-cmake
jsoncpp: fix generated pkg-config file
2020-07-09 00:15:42 +02:00
Jan Tojnar 31ff58e6f1 Merge pull request #92047 from r-ryantm/auto-update/libiio
libiio: 0.20 -> 0.21
2020-07-09 00:06:48 +02:00
Jan Tojnar 1837136c7b libvirt: use /run for runstatedir
systemd complains:

	Jul 08 12:43:59 kaiser systemd[1]: /nix/store/bvfikb8v9m646m23fqm0rfnnsj6plc2k-libvirt-6.2.0/lib/systemd/system/libvirtd-admin.socket:11: ListenStream= references a path below legacy directory /var/run/, updating /var/run/libvirt/libvirt-admin-sock → /run/libvirt/libvirt-admin-sock; please update the unit file accordingly.
	Jul 08 12:43:59 kaiser systemd[1]: /nix/store/bvfikb8v9m646m23fqm0rfnnsj6plc2k-libvirt-6.2.0/lib/systemd/system/libvirtd-ro.socket:11: ListenStream= references a path below legacy directory /var/run/, updating /var/run/libvirt/libvirt-sock-ro → /run/libvirt/libvirt-sock-ro; please update the unit file accordingly.
	Jul 08 12:43:59 kaiser systemd[1]: /nix/store/bvfikb8v9m646m23fqm0rfnnsj6plc2k-libvirt-6.2.0/lib/systemd/system/libvirtd.socket:9: ListenStream= references a path below legacy directory /var/run/, updating /var/run/libvirt/libvirt-sock → /run/libvirt/libvirt-sock; please update the unit file accordingly.

Let's just set it correctly manually, that is what Red Hat does:

https://gitlab.com/libvirt/libvirt/-/commit/ba7592f6c17d50435582e597727fbfc51322d606

See also:

https://gitlab.com/libvirt/libvirt/-/commit/390997925a3aca1b57969526c3e083761fafe7c3
2020-07-08 18:56:01 +02:00
Jan Tojnar 143398d7da Merge pull request #92390 from fionera/add-fuzzel
Add fuzzel
2020-07-08 13:42:13 +02:00
Jan Tojnar 5b3fe9f776 update.nix: Allow passing overlays
Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.
2020-07-07 21:29:32 +02:00
Jan Tojnar 0b0b74367f libiio: 0.20 -> 0.21
* Format with nixpkgs-format.
* Reorder the attribute to be more in line with convention.
* Use simpler git ref.
* Hardcode paths within bindings using patch (the replaced value actually changed in this version and without this clean-up, it would have gone unnoticed.)
* Let the build script install the python bindings instead of doing it manually (required the same hardcoding as above in the setup.py.)
* Use cmakeFlags attribute with placeholder instead of doing that in preConfigure.
* Move udev rules to lib since etc is meant for admins.
* License is actually lgpl2.1+.
2020-07-06 06:26:21 +02:00
Jan Tojnar b01f391153 Merge branch 'staging-next' into staging 2020-07-05 23:48:21 +02:00
Jan Tojnar f38d3df11c Revert "qt5.qtwebkit: Fix paths in pc files"
This reverts commit dee7377508.
2020-07-05 19:01:54 +02:00
Jan Tojnar cfe7e12d38 Revert "cmake: only set output paths with multiple outputs"
This reverts commit be1b22538a.

The commit broke Qt modules using CMake because they disable setOutputFlags.

There is no need to have these flags limited to multiple output derivations since it
should just work. If it does not, it is a bug that should be fixed as per
https://github.com/jtojnar/cmake-snips#assuming-cmake_install_dir-is-relative-path
Likewise, having a variable to disable passing the flags is also unnecessary,
since CMake, unlike some configure scripts, ignores unknown flags. And if a person
does not like the values, they can just override them by passing the offending
flag with a different value to cmakeFlags.
2020-07-05 19:01:53 +02:00
Jan Tojnar 13b5ae55cd licenses: Make single-version-only GPL explicit
I commonly see people use the former when they should use the latter.

Would be also in line with the SPDX change https://www.gnu.org/licenses/identify-licenses-clearly.html
2020-07-05 17:51:30 +02:00
Jan Tojnar 9925e909e4 Merge pull request #92228 from jtojnar/gimp-interp 2020-07-05 05:45:03 +02:00
Jan Tojnar 07cebeffb8 Merge pull request #86473 from bachp/virtualbox-vmsvga 2020-07-05 04:11:44 +02:00
Jan Tojnar 3d6fcff625 Merge branch 'staging-next' into staging 2020-07-05 00:00:14 +02:00
Jan Tojnar 4bca7dfb27 Merge branch 'master' into staging-next 2020-07-04 23:59:32 +02:00
Jan Tojnar dee7377508 qt5.qtwebkit: Fix paths in pc files
In https://github.com/NixOS/nixpkgs/commit/be1b22538a60e52987d238bb11f93043682b6e9a,
CMake setup-hook started to respect setOutputFlags. Since qtModule disables it by default,
cmake no longer received the multiple-output adjusted installation directory flags when
building the qtwebkit package. This resulted in incorrect paths in generated pkg-config files
and CMake config files.

Let’s temporarily enable setOutputFlags in the qtwebkit expression, until the commit is reverted.
2020-07-04 23:52:38 +02:00
Jan Tojnar 704e9e9b24 qt4: remove multimedia support
It depends on ancient gstreamer which is broken and likely insecure.
2020-07-04 14:24:41 +02:00
Jan Tojnar b62d663bec Merge pull request #92214 from dasj19/simple-scan-update
simple-scan: 3.36.2.1 -> 3.36.3
2020-07-04 01:22:51 +02:00
Jan Tojnar b017766ff4 Merge pull request #92213 from dasj19/gnome-control-center-update
gnome-control-center: 3.36.3 -> 3.36.4
2020-07-04 01:22:30 +02:00
Jan Tojnar 35b5cb2469 Merge pull request #92217 from dasj19/iagno-update
iagno: 3.36.3 -> 3.36.4
2020-07-04 00:39:39 +02:00
Jan Tojnar 64ec4fd65d gimp: Hardcode interpreter paths
The E (extension) line in pygimp.interp prints the following warnings:

GIMP-Warning: Bad interpreter referenced in interpreter file /nix/store/5c91dah385gn70blsn6i5rzncqj3ks0y-gimp-with-plugins-2.10.18/lib/gimp/2.0/interpreters/pygimp.interp: python2
GIMP-Warning: Bad binary format string in interpreter file /nix/store/5c91dah385gn70blsn6i5rzncqj3ks0y-gimp-with-plugins-2.10.18/lib/gimp/2.0/interpreters/pygimp.interp

This means that the py extension will not be registered when python2 is not in PATH. To prevent this, let’s hardcode the absolute python2 path.

https://github.com/NixOS/nixpkgs/issues/60937#issuecomment-653652093

Closes: https://github.com/NixOS/nixpkgs/issues/60937
2020-07-03 22:47:17 +02:00
Jan Tojnar 5947d5aff8 Merge pull request #92210 from dasj19/epiphany-update
epiphany: 3.36.2 -> 3.36.3
2020-07-03 21:49:30 +02:00
Jan Tojnar 3b701aa4b6 gimp: Fix interpreter path
GIMP uses python interpreter specified in pygimp.interp file for running Python plug-ins,
so any Python related wrapping is useless. It will pick up and use the python from build PATH.

Let’s use a python environment containing pygtk, which is needed by many plug-ins.

Closes: https://github.com/NixOS/nixpkgs/issues/87883
2020-07-03 21:07:45 +02:00
Jan Tojnar 97f149405e Merge pull request #92156 from r-ryantm/auto-update/gnome-contacts
gnome3.gnome-contacts: 3.36.1 -> 3.36.2
2020-07-03 20:00:16 +02:00