1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
Commit graph

38 commits

Author SHA1 Message Date
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
Eelco Dolstra 48efe637ac xdg-utils: Don't depend on "which" 2015-07-26 22:46:23 +02:00
William A. Kennington III d605663ae2 Merge branch 'master.upstream' into staging.upstream 2015-07-05 13:06:02 -07:00
aszlig 2467c437b7
xdg_utils: Fix wrong substitution of grep command.
Fixes regression introduced by 16406e63b3.

Not replacing "egrep" with a negated character class on [^e] needs to be
put back into the replacement, because if we have something like:

foo="$(grep xxx)"

The replacement would be something like this:

foo="$/nix/store/.../bin/grep xxx)"

Which will lead to wrong behavior and in cases of for example
"xdg-screensaver", even directly to a syntax error:

xdg-screensaver: line 178: syntax error near unexpected token `('
xdg-screensaver: line 178: `command="/nix/store/.../bin/grep -E
                            "^Exec(\[[^]=]*])?=" "$file" |
                            /nix/store/.../bin/cut -d= -f 2- |
                            first_word`"'

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-07-05 09:25:13 +02:00
William A. Kennington III 612f0bdd67 Merge branch 'master.upstream' into staging.upstream 2015-06-30 23:58:07 -07:00
Pascal Wittmann 16406e63b3 xdg_utils: fix handling of runtime dependencies, closes #8564
'egrep' was substituted with the path to the grep binary
2015-06-30 15:45:09 +02:00
Vladimír Čunát 61596bf405 Merge #8363: pure-darwin stdenv 2015-06-18 22:38:08 +02:00
Rok Garbas ca407f3738 xdg_utils: fixing some of the impurities in xdg-utilso, #8377 2015-06-18 10:51:35 +02:00
Eelco Dolstra 94389cb8c6 xdg-utils, libclc: Use fetchzip 2015-05-13 18:17:26 +02:00
Dmitry Bushev e7f4d36621 xdg-utils: http-based fetchgit url
Change xdg-utils fetchgit url to `http` alternative since it is
more proxy-friendly. The list of repository url alternatives
can be found at http://cgit.freedesktop.org/xdg/xdg-utils/
2015-04-17 16:36:41 +03:00
Vladimír Čunát 346c8d7a98 xdg-utils: update from git to fix CVE-2014-9622
Fixes #6193.
Disabling docs generation might be another alternative
to the build-time dependency blowup.

That KDE patch no longer applies, but the code seems to take KDE5 into
account already. CC @ttuegel.
2015-02-07 07:35:21 +01:00
Thomas Tuegel dfe1dc0c02 xdg-utils: patch xdg-open to use KDE 5 tools 2015-01-26 21:01:06 -06:00
Mateusz Kowalczyk 007f80c1d0 Turn more licenses into lib.licenses style
Should eval cleanly, as far as -A tarball tells me.

Relevant: issue #2999, issue #739
2014-11-06 00:48:16 +00:00
Aristid Breitkreuz 7a2daf2db7 update xdg-utils to 1.1.0-rc1, fixes problems with generic xdg-open code 2013-07-04 23:36:29 +02:00
Rickard Nilsson 24298db823 xdg-utils: Fix reference to /usr/bin/file in xdg-mime 2012-10-04 13:38:26 +02:00
Eelco Dolstra 48e1c2df80 * Added xdg-utils, a package that contains desktop integration
commands such as `xdg-open' (which opens a URL with the user's
  default browser).

svn path=/nixpkgs/trunk/; revision=20829
2010-03-25 19:48:06 +00:00