Commit Graph

65 Commits

Author SHA1 Message Date
nicoo
fd35844982
Merge #308333: Ensure xdg-mime can find the mimeinfo DB 2024-05-04 08:48:37 +00:00
nicoo
218d74f794 xdg-utils: add test for xdg-mime 2024-05-02 22:37:53 +00:00
Jussi Kuokkanen
ce3f586775 pkgs/tools: remove licenses.gpl2 2024-05-02 21:06:26 +02:00
nicoo
57775b3ffe xdg-utils: Ensure xdg-mime can find shared-mime-info
Issue discovered when testing #251474, `xdg-mime` can't find the mimeinfo DB:

	❯ nix-shell --pure -I nixpkgs=. -p xdg-utils
	$ xdg-mime query filetype /dev/stdin < some/picture.png
	WARNING: You don't seem to have a mime-info database. The shared-mime-info package is available from http://freedesktop.org/ at /nix/store/jvkvicdw2hwl40gl52kakz4yi59lwpkh-perl5.38.2-File-MimeInfo-0.33/bin/mimetype line 175.
	No mimeinfo database found
2024-05-01 18:07:32 +00:00
K900
5a98ab8c0e xdg-utils: don't infrec in xdg-screensaver
Before:

```bash
lockfile_command=`command -v /nix/store/8l572fp5svwp2x1izz2avji8l0ysxkq4-procmail-3.24/bin/lockfile`

lockfile()
{
  if [ -n "lockfile" ] ; then
     lockfile -1 -l 10 -s 3 "$screensaver_file".lock
```

After:

```bash
lockfile_command=`command -v /nix/store/4ka6z06bvxbcz98m0wy5m1m04f8ppkgw-procmail-3.24/bin/lockfile`

lockfile()
{
  if [ -n "$lockfile_command" ] ; then
     $lockfile_command -1 -l 10 -s 3 "$screensaver_file".lock
```

Fixes #304308
2024-04-17 08:45:38 +03:00
Travis A. Everett
6cf9a8930a xdg-utils: override lore for perl
The OSH update (and associated refactoring) in resholve seem
to have uncovered surfaced a fresh error here.
2024-03-28 19:47:02 -05:00
Maciej Krüger
628282de10
Merge pull request #290860 from chewblacka/fix2-xdg-utils
xdg-utils: add xdg-terminal
2024-03-24 00:01:47 +01:00
Coutinho de Souza
aba28d5103
xdg-utils: add perlPackages.FileMimeInfo to xdg-mime-prologue (#291692)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-03-01 14:20:46 +01:00
John Garcia
b26b1ed739 xdg-utils: add xdg-terminal 2024-02-24 13:23:49 +00:00
K900
dcab6b7165
Merge pull request #286533 from abathur/rm_extra_xdg_utils_input
xdg-utils: remove unnecessary input
2024-02-06 14:52:02 +03:00
K900
b55f39a8b1 xdg-utils: 1.2.0 -> 1.2.1 2024-02-06 14:50:23 +03:00
Travis A. Everett
370cd05f24 xdg-utils: rm unused dependency
We included lockfileProgs by mistake, thinking it provided
bin/lockfile. This was already provided by `procmail`.
2024-02-05 11:26:47 -06:00
Sandro Jäckel
bc58c5634c
xdg-utils: wrap with gdbus which is required for the xdg.portal.xdgOpenUsePortal option 2024-02-05 00:40:00 +01:00
K900
cee13123c0 xdg-utils: unstable-2022-11-06 -> 1.2.0, resholve 2024-02-04 10:09:23 +03:00
jopejoe1
bf123a7e48 xdg-utils: change license to mit
Found in the git repo at https://gitlab.freedesktop.org/xdg/xdg-utils/-/blob/master/LICENSE
2023-12-17 08:47:39 +00:00
Artturi
0c373df9d6
Merge pull request #220742 from eriedaberrie/xdgutils-mimeopen 2023-11-19 03:34:57 +02:00
Colin
a227fd1fe7 xdg-utils: enable cross compilation
native build produces binaries with `#!${bash}/bin/sh` as shebang.
seems to be a consequence of nixpkgs using bash in the builder, and
`patchShebangs` sees that. OTOH cross builds would get `#!/bin/sh` because
the builder's bash isn't eligible as a runtime shebang. i can't say
which is most "correct" in the context of this tool, but shipping bash
in `buildInputs` where `patchShebangs` can see it at least gets us *consistency*.
2023-08-06 09:36:18 +00:00
Adam Joseph
a29c4db5ab
Merge pull request #225112 from amjoseph-nixpkgs/pr/xdg-mime/cross-is-broken
xdg-utils: mark broken if cross
2023-07-20 22:41:46 +00:00
Cole Mickens
549f616c70
xdg-utils: unstable-2020-10-21 -> unstable-2022-11-06 2023-05-02 16:24:00 -06:00
Adam Joseph
7db4087a32 xdg-utils: mark broken if cross 2023-04-07 00:04:03 -07:00
eriedaberrie
30b2770a54 xdg-utils: allow xdg-open access to mimeopen
Prevent xdg-open from silently failing to call mimeopen and falling back to
the browser whenever the mimetype doesn't have an explicitly set default
application.
2023-03-11 13:28:24 -08:00
Lily Foster
b1849a18cf
xdg-utils: patch xdg-open to correctly open files when using portal
See upstream MR at https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/65 which adds support for the org.freedesktop.portal.OpenURI.OpenFile method.
2023-02-21 20:25:36 -05:00
Luna Nova
17b70a2635 xdg-utils: fix missing glib dependency for xdg-open.in and xdg-email.in 2022-11-12 18:45:32 +01:00
Luna Nova
eaab93d638 xdg-utils: add patch which adds NIXOS_XDG_OPEN_USE_PORTAL env var
from https://github.com/freedesktop/xdg-utils/pull/12
2022-11-12 18:45:32 +01:00
Brian McKenna
17958d7718 xdg-utils: fix cross-compilation 2022-05-29 20:55:08 +10:00
Sandro Jäckel
e383389428
xdg-utils: remove ? null from inputs 2022-03-30 01:01:47 +02:00
Sandro Jäckel
9f6472500a
xdg-utils: switch to fetchFromGitLab 2022-03-30 00:57:38 +02:00
Stefan Frijters
e4e6537234
xdg_utils: 1.1.3 -> unstable-2020-10-21
There has not been an official release for a long time, but
new features and fixes are available
2021-01-18 16:22:51 +01:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Erik Arvstedt
68559e2820
xdg-utils: add missing dependencies
- Add coreutils to PATH, because the xdg scripts use other not yet
  provided coreutils like head.
  This makes the custom 'cut' and 'sort' functions obsolete.
  Remove double quotes around $out because $out contains no Bash field separators.
- Replace all instances of 'which' with 'type -P'.
  The previous sed command only replaced instances with a leading space.
2020-08-17 13:03:54 +02:00
Graham Christensen
4b5880f015
xdg_utils: xdg-open: add $out to PATH
Otherwise, xdg-open cannot call xdg-mime and this does not work:

    "${pkgs.xdg_utils}/bin/xdg-open"
2020-06-17 08:27:55 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Sebastian Ullrich
1e2ae6d818 xdg-utils: fix reference to mimetype
Before this change, xdg-open would impurely look up mimetype in the PATH. While
it would fall back to file if not found, mimetype gives decidedly better output
(e.g. text/csv instead of just text/plain).
2019-11-01 15:38:49 +01:00
Bjørn Forsman
e584eba7f8 xdg-utils: add missing perl dependencies
Or else `xdg-screensaver suspend <WINDOW_ID>` fails with errors like:

  Can't locate Net/DBus.pm in @INC [...]

This increases the closure of xdg-utils from 53 MiB to 119 MiB.

(The issue was found when testing retroarch.)
2019-09-26 08:11:32 +02:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Will Dietz
81e3fb3cf7 xdg-utils: 1.1.2 -> 1.1.3 (#48089) 2018-10-10 23:35:09 +02:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Nikolay Amiantov
ab67f36e73 xdg_utils: fix xdg-screensaver 2018-03-20 22:20:23 +03:00
David Kleuker
022cbdd7e7
xdg-utils: fix homepage URL 2018-02-22 09:08:28 +01:00
Samuel Dionne-Riel
7b97c8c0c8 treewide: homepage+src updates (found by repology, #33263) 2018-01-05 20:42:46 +01:00
Franz Pletz
d5680983dc
xdg_utils: 1.1.1 -> 1.1.2 2017-08-28 00:54:43 +02:00
Volth
d2f453bc0d fix #25511 2017-06-05 23:37:53 +00:00
Michael Raskin
a486850992 xdg_utils: mimiSupport: update to the latest master 2017-01-04 15:01:46 +01:00
zimbatm
621ed35991 xdg_utils: fixes #14060 2016-03-20 00:52:10 +00:00
zimbatm
af1e32acd3 xdg_utils: 1.1.0-rc3p46 -> 1.1.1 2016-03-20 00:52:09 +00:00
Vladimír Čunát
1df2a6431f xdg-utils: replace commands more precisely
Fix #13904, close #13908.
Previously many messages got clobbered. Now it should be better.

The solution is still relatively hacky, but I don't see how to improve
it without doing lots of work.
2016-03-14 11:00:05 +01:00
Stéphane Jourdois
a39832a12c xdg-utils: allow build on darwin 2015-10-31 17:58:23 +01:00
Vladimír Čunát
aaa985e317 xgd-utils: update p7 -> p46 (close #9851)
This update probably contains a fix for CVE-2014-9622.
Thanks to @jb55 for the PR. We take even newer version.
2015-09-20 09:43:29 +02:00
Jan Malakhovski
a0f50dc665 xdg_utils: add mimi support 2015-08-16 20:23:01 +02:00