Commit Graph

35 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
jacekpoz
95679606a9
imv: add meta.mainProgram 2024-08-31 11:29:40 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Guilhem Saurel
439b5c0fd9 imv: 4.4.0 -> 4.5.0 2024-02-22 11:05:48 +01:00
Felix Albrigtsen
d6b50697f3 netsurf.libnsgif: 0.2.1 -> 1.0.0
imv: remove broken libnsgif dependency
2024-02-15 10:56:28 +01:00
éclairevoyant
f5b79154ff
imv: fix build with strictDeps = true; 2024-01-15 09:02:27 -05:00
Sebastian Sellmeier
e6143a1b4e
imv: 4.3.1 -> 4.4.0 2023-02-01 21:49:23 +01:00
Emery Hemingway
8c509d504d imv: 4.3.0 -> 4.3.1
Package update, split outputs, sources moved to SourceHut.
2021-12-20 14:57:33 +01:00
R. RyanTM
2680c91bc3 imv: 4.2.0 -> 4.3.0 2021-08-07 01:51:22 +00:00
Ricardo M. Correia
945c021476 imv: clarify license
licenses.gpl2 is deprecated, either gpl2Only or gpl2Plus should be
specified. However, imv is dual-licensed under the GPL and MIT licenses.

MIT is the one in the root LICENSE file, it's the one that Github shows
in  the main repo page and is also the more permissive one, therefore I
changed it to licenses.mit.
2021-06-14 00:32:05 +02:00
Ricardo M. Correia
2732a344bb imv: remove unused fontconfig argument 2021-06-14 00:32:05 +02:00
Ricardo M. Correia
54f77325e7 imv: install .desktop file 2021-06-14 00:32:05 +02:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08: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
sternenseemann
4f927ee341 imv: make every backend and window system configurable
The following new derivation inputs are added:
* withBackends: a list of all backends to enable. The valid names are
  the same as specified in imv's meson_options.txt. Default is to enable
  all 7 backends: freeimage, libtiff, libjpeg(_turbo), libpng, librsvg,
  libnsgif and libheif
* withWindowSystem: either all, x11 or wayland to describe window system
  support.
2021-01-05 00:23:09 +01:00
sternenseemann
c391b303ca imv: use substituteInPlace 2021-01-04 14:41:45 +01:00
sternenseemann
a1e9a94785 imv: 4.1.0 -> 4.2.0
* switch build system to wayland
* enable all backends by adding the following to buildInputs as meson
  autodetects which backends are available.
  * libtiff
  * libheif
  * libpng

Open questions:

* imv prints a warning from the tiff backend everytime a non tiff file
  is opened: Is this normal? Seems harmless enough though.
* Should we make backends configurable / optional? I readded some
  backends which apparently were removed, but still given as an argument
  to the derivation.

Resolves #108185.
2021-01-03 12:54:39 +01:00
Markus Hauck
1320526747 imv: enable LIBNSGIF and LIBJPEG backends 2020-10-18 18:26:41 +02:00
Daiderd Jordan
b7ddbd52bd
treewide: replace SRI hashes 2020-06-01 15:24:19 +02:00
adisbladis
1f8bda3ce2
ivm: Package is not x86 specific 2020-05-23 22:47:22 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Justin Humm
ccb4a4e4e9
imv: 4.0.1 -> 4.1.0 2020-01-09 21:00:18 +01:00
Markus Hauck
8e6b1cac31 imv: 3.1.2 -> 4.0.1 2019-09-06 10:05: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
Markus Hauck
6b3fe044fc imv: 3.0.0 -> 3.1.2 2019-07-19 08:52:00 +02:00
aszlig
7bda775331
imv: Include i686-linux in platforms attribute
The package builds and works fine on i686-linux, so there is no need to
fail evaluation on those systems.

Signed-off-by: aszlig <aszlig@nix.build>
Issue: #45976
Cc: @rnhmjoj, @xeji
2018-09-09 10:30:58 +02:00
rnhmjoj
d5b0c4d5c2
imv: build only on x86_64 linux 2018-09-04 00:35:17 +02:00
rnhmjoj
7a58a44474
imv: 2.1.3 -> 3.0.0 2018-09-03 14:22:32 +02:00
rnhmjoj
9aeb730822
imv: 2.1.2 -> 2.1.3 2016-10-31 22:12:04 +01:00
rnhmjoj
f0daeb575a
imv: fix failing build 2016-08-27 06:42:44 +02:00
rnhmjoj
8c489cdd6e
imv: 2.0.0 -> 2.1.2 2016-05-28 15:00:32 +02:00
rnhmjoj
16d6eb45f1 imv: 1.2.0 -> 2.0.0 2016-02-13 05:13:49 +01:00
rnhmjoj
e8c55a06e2 imv: 1.0.0 -> 1.1.0 2015-12-08 16:22:16 +01:00
rnhmjoj
994753322c imv: add version in the package name 2015-11-14 10:11:12 +01:00
rnhmjoj
03121cd5ac imv: init at 1.0.0 2015-11-12 19:40:00 +01:00