Commit Graph

34 Commits

Author SHA1 Message Date
Maximilian Bosch
8bc5104a6e
treewide: refactor .attrs.sh detection
When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into

    builtins.derivation {
      builder = stdenv.shell;
      args = [ "-e" builder ];
    }

This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].

Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:

* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
  Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
  (see previous commit for more context), so prefer the environment
  variable if possible.

* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
  can happen.

* If neither applies, it can be assumed that `__structuredAttrs` is
  turned off and thus nothing needs to be done.

[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
    it can point to a wrong location on older Nix versions with a bug in
    `__structuredAttrs`.
2023-10-04 18:36:57 +02:00
Artturin
c01f509e44 treewide: source .attrs in builders
if theres a source $stdenv then this is needed

for structuredAttrs
2022-12-08 21:09:02 +02:00
Robert Scott
466c2e342a treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
Sandro Jäckel
4bb2c88d0d
adobe-reader: use meta.platforms, cleanup version, minor formatting 2021-11-08 23:08:48 +01:00
Felix Bühler
fbdf78236a
pkgs/applications: rename name to pname&version part 1 (#144949)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-07 21:29:51 +01:00
Ben Siraphob
108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +07:00
John Ericson
d30161b2d9
Merge pull request #96693 from jmininger/jam@fix-adobe-reader
adobe-reader: add gkd-pixbuf-xlib based on issue: #96683
2020-09-17 14:58:21 -04:00
Daniël de Kok
4b07b00c0d adobe-reader: add knownVulnerabilities
We should really avoid that people unknowingly use Adobe Reader, it
has literally tens of known high-score code execution vulnerabilities,
probably exploited in the wild.
2020-09-01 08:39:36 +02:00
Jacquin Mininger
6a6f02a25c adobe-reader: add gkd-pixbuf-xlib based on issue: #96683 2020-08-30 15:53:11 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
worldofpeace
b1bc0645ea gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Kirill Boltaev
bccd75094f treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
Vladimír Čunát
177464ade9 wrapFirefox: add enableAdobeReader
So far we only have 32-bit package.
It will be silently missed on 64-bit ATM.
2016-02-09 18:21:40 +01:00
Eric Seidel
f3c6827373 rename all occurrences of stdenv.cc.gcc to stdenv.cc.cc 2015-01-14 20:27:55 -08:00
John Wiegley
28b6fb61e6 Change occurrences of gcc to the more general cc
This is done for the sake of Yosemite, which does not have gcc, and yet
this change is also compatible with Linux.
2014-12-26 11:06:21 -06:00
Mateusz Kowalczyk
7a45996233 Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
Eelco Dolstra
b232825c07 adobe-reader: Update to 9.5.5 2013-11-04 18:46:44 +01:00
Eelco Dolstra
704f7d6a2c adobe-reader: Unpack to $out/libexec/adobe-reader
This prevents polluting Nix profiles.
2012-11-08 16:31:08 +01:00
Eelco Dolstra
892180306d adobe-reader: Update to 9.5.1 2012-11-08 16:31:08 +01:00
Eelco Dolstra
73ce1dd4bb * Adobe Reader: install .desktop file in the right place.
svn path=/nixpkgs/trunk/; revision=33297
2012-03-20 14:41:24 +00:00
Yury G. Kudryashov
68fe867e19 Get rid of most references to gtkLibs
svn path=/nixpkgs/trunk/; revision=33088
2012-03-14 21:57:32 +00:00
Yury G. Kudryashov
215a07c1a9 svn merge ^/nixpkgs/trunk
Merge conflicts:
* unzip (almost trivial)
* dvswitch (trivial)
* gmp (copied result of `git merge`)

The last item introduced gmp-5.0.3, thus full rebuild.
+ensureDir->mkdir -p in TeX packages was catched by git but not svn.

svn path=/nixpkgs/branches/stdenv-updates/; revision=32091
2012-02-06 23:03:12 +00:00
Eelco Dolstra
7b5db94b5f * Updated Adobe Reader to 9.4.7.
svn path=/nixpkgs/trunk/; revision=31978
2012-02-02 12:19:17 +00:00
Eelco Dolstra
c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00
Ludovic Courtès
36da53ebc3 Adobe Reader: Set `meta.license'.
svn path=/nixpkgs/trunk/; revision=30495
2011-11-20 20:42:24 +00:00
Eelco Dolstra
83b3ab4657 * Adobe Reader: depend on gdk_pixbuf (from Marc Weber). Also update
to 9.4.2.

svn path=/nixpkgs/trunk/; revision=26572
2011-03-28 15:46:10 +00:00
Eelco Dolstra
c14382cb45 * Sync with the trunk.
svn path=/nixpkgs/branches/stdenv-updates/; revision=25225
2010-12-21 15:14:33 +00:00
Eelco Dolstra
f0b62c77a9 * Adobe Reader 9.4.
svn path=/nixpkgs/trunk/; revision=25208
2010-12-20 12:14:58 +00:00
Lluís Batlle i Rossell
0fe27433af 'tar' fails at unpacking adobe files, but the files get unpacked.
I simply disable the check for tar error codes.


svn path=/nixpkgs/branches/stdenv-updates/; revision=25067
2010-12-12 08:47:13 +00:00
Eelco Dolstra
b29496c4be * Adobe Reader: updated to 9.3.3. Make it installable on
x86_64-linux.

svn path=/nixpkgs/trunk/; revision=22956
2010-08-05 08:54:58 +00:00
Eelco Dolstra
18439774f8 * Adobe Reader 9.2.
svn path=/nixpkgs/trunk/; revision=17799
2009-10-14 13:08:04 +00:00
Eelco Dolstra
e16fe2a1eb svn path=/nixpkgs/trunk/; revision=15984 2009-06-17 13:56:46 +00:00
Eelco Dolstra
8202de939d * Acrobat Reader -> Adobe Reader, and updated to version 9.0.1.
Removed the fastStart option; it seems to start fast enough without
  it nowadays.  Include CUPS in the RPATH so that the printer dialog
  box shows actual printers (especially useful since KDE 4 no longer
  include the kprinter program ;-).

svn path=/nixpkgs/trunk/; revision=15570
2009-05-12 14:49:01 +00:00