Commit Graph

33 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
Philip Taron
6ecdcc651c
goldendict: remove with statements 2024-08-18 06:31:12 -07: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
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
Artturi
67b75cf42c
Merge pull request #215435 from DCsunset/goldendict-fix-adding-dict 2023-09-08 04:23:00 +03:00
Jian Lin
74b66861c0
treewide: add meta.mainProgram (#248750) 2023-08-12 16:24:01 -04:00
DCsunset
9eb19d6cf3 goldendict: fix gsettings crash when adding paths for dictionaries 2023-07-18 11:45:52 -04:00
DCsunset
ec234a6b20 goldendict: fix wrong rev in fetchFromGitHub 2023-07-18 11:13:09 -04:00
Weijia Wang
4b521a61df goldendict: 2022-05-10 -> 1.5.0 2023-06-27 10:10:57 +03:00
Nikolay Korotkiy
b6d6a89fad
goldendict: 2021-03-09 → 2022-05-10, fix build on darwin 2022-05-20 17:45:05 +03:00
Dmitry Kalinkin
e0532475bc
treewide: remove darwin-only manual wrapQtApp invocations 2021-09-28 10:29:46 -04:00
Nikolay Korotkiy
154020654c
goldendict: 2020-12-09 → 2021-03-09, use ffmpeg instead of ffmpeg_3 2021-05-22 13:40:38 +03:00
Ben Siraphob
5d566c43b4 pkgs/applications: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
Ben Siraphob
108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +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
Gabriel Ebner
860adac4ab goldendict: 2020-05-27 -> 2020-12-09 2020-12-12 19:37:09 +01:00
Doron Behar
01d4e2fe33 treewide: use ffmpeg_3 explicitly if not wanted otherwise
After making `ffmpeg` point to the latest `ffmpeg_4`, all packages that
used `ffmpeg` without requiring a specific version now use ffmpeg_3
explicitly so they shouldn't change.
2020-06-12 11:55:31 -07:00
Nikolay Korotkiy
7384e9b249
goldendict: 2020-01-09 -> 2020-05-27 2020-06-04 12:19:04 +03:00
Nikolay Korotkiy
217b221eab
goldendict: enable on darwin 2020-02-13 10:09:36 +03:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Nikolay Korotkiy
537f3621c6
goldendict: 2018-06-13 -> 2019-08-01 2019-08-03 01:04:12 +03:00
Markus Kowalewski
98440749c1
goldendict: add license 2018-09-01 16:11:19 +02:00
Gabriel Ebner
693a4ce209 goldendict: 1.5.0.rc2 -> 2018-06-13
fixes build
2018-07-01 12:00:17 +02:00
John Ericson
ed14223f8c treewide: Manual fix more pkg-config build-inputs 2017-09-21 15:49:54 -04:00
Thomas Tuegel
210f688802
qt5: rename qmakeHook to qmake 2017-06-18 08:41:57 -05:00
Gabriel Ebner
05a89a6512 goldendict: 1.5.0.ec86515 -> 1.5.0.rc2 2016-06-20 17:59:37 +02:00
Bjørn Forsman
bd01fad0ed Captialize meta.description of all packages
In line with the Nixpkgs manual.

A mechanical change, done with this command:

  find pkgs -name "*.nix" | \
      while read f; do \
          sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \
      done

I manually skipped some:

* Descriptions starting with an abbreviation, a user name or package name
* Frequently generated expressions (haskell-packages.nix)
2016-06-20 13:55:52 +02:00
Nikolay Amiantov
b6717f466b goldendict: move to qmake4Hook 2016-04-20 18:55:42 +03:00
wedens
f8d2af6260 goldendict: b4bb1e9 -> ec86516 2015-12-10 23:51:07 +06:00
Gabriel Ebner
4b9428038e goldendict: 1.0.1 -> 1.5.0.20150801 2015-09-24 07:45:47 +02:00
Vladimír Čunát
d210a4a8fa goldendict: fix build with gcc47 2013-03-21 00:08:24 +01:00
Vladimír Čunát
9397f5b25f goldendict: fix missing pkgconfig 2013-01-21 17:49:37 +01:00
Alexander Tsamutali
109068c605 applications/misc/goldendict: New nixpkg.
svn path=/nixpkgs/trunk/; revision=32045
2012-02-05 21:02:27 +00:00