Commit Graph

38 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
Francesco Gazzetta
38d8cfea7e drawpile: assert that at least one component is built 2024-06-30 17:13:09 +02:00
Francesco Gazzetta
a3f473bdc1 drawpile: remove global with lib; 2024-06-30 17:13:09 +02:00
Francesco Gazzetta
bb24d44078 drawpile: use lib.cmake*, remove unused flags 2024-06-30 17:13:09 +02:00
Francesco Gazzetta
8618b4e48b drawpile: set mainProgram to the client when appropriate 2024-06-30 17:13:06 +02:00
Francesco Gazzetta
dbc68fa02f drapwile: specify gpl3Plus 2024-06-30 17:12:02 +02:00
Francesco Gazzetta
672766aca5 drawpile: 2.1.20 -> 2.2.1
Diff: https://github.com/drawpile/drawpile/compare/2.1.20...2.2.1
2024-06-30 17:12:02 +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
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Weijia Wang
9f74a9f9cc drawpile: mark as broken on darwin 2023-04-24 23:59:18 +03:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
Francesco Gazzetta
b2092aae6f drawpile: 2.1.19 -> 2.1.20 2021-10-02 17:50:36 +02:00
Dmitry Kalinkin
9c0644262f
drawpile: remove unused fetchpatch input 2021-08-20 20:57:53 -04:00
Francesco Gazzetta
5919a42546
drawpile,drawpile-server-headless: 2.1.17 -> 2.1.19 (#134331) 2021-08-16 21:30:42 -04:00
Pavol Rusnak
2c931312ce treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
2020-11-01 23:02:24 -08:00
Francesco Gazzetta
1c8d65f940 drawpile: fix build by adding libsecret 2020-09-09 15:39:00 +02:00
Peter Hoeg
375aca6f76 drawpile: make it build with a recent libmicrohttpd 2020-08-24 15:54:17 +08:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Francesco Gazzetta
2c2584dac8 drawpile: 2.1.16 -> 2.1.17 2020-03-04 09:31:46 +01:00
Francesco Gazzetta
6932a75d9c
drawpile,drawpile-server-headless: 2.1.15 -> 2.1.16 (#79760) 2020-02-10 18:16:23 -05:00
Francesco Gazzetta
feb775244c drawpile: 2.1.14 -> 2.1.15 (#75553) 2019-12-12 17:56:07 -05:00
R. RyanTM
c61318b3ad drawpile: 2.1.13 -> 2.1.14 2019-11-25 10:02:38 -08:00
Francesco Gazzetta
91b01aef66 drawpile: 2.1.12 -> 2.1.13 (#72854) 2019-11-05 14:56:20 -05:00
R. RyanTM
fc8b711277 drawpile: 2.1.11 -> 2.1.12 2019-11-02 11:07:17 -07:00
Francesco Gazzetta
c16df62034 drawpile: Switch to qt-specific mkDerivation 2019-09-05 17:22:57 +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
R. RyanTM
30ccf0588a drawpile: 2.1.10 -> 2.1.11
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/drawpile/versions
2019-07-01 04:08:37 -07:00
R. RyanTM
f019fd9c2f drawpile: 2.1.8 -> 2.1.10
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/drawpile/versions
2019-06-01 05:45:46 -07:00
R. RyanTM
a75b1c656a drawpile: 2.1.7 -> 2.1.8
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/drawpile/versions
2019-05-04 22:44:10 -07:00
Francesco Gazzetta
24786ff49f drawpile: 2.1.6 -> 2.1.7 (#59650) 2019-04-15 21:55:04 -04:00
Francesco Gazzetta
7ba046d906 drawpile: add build options (#57573)
Also add server-headless variant
2019-04-15 18:20:13 -04:00
Tobias Bora
c0d27053cc drawpile: set meta.platforms (#57888) 2019-04-11 00:27:17 -04:00
Francesco Gazzetta
410a41b75f drawpile: 2.1.4 -> 2.1.6 2019-04-09 10:53:41 +02:00
Francesco Gazzetta
05b056e44d drawpile: 2.1.3 -> 2.1.4 2019-03-26 10:15:25 +01:00
Francesco Gazzetta
1779c61f1b drawpile: 2.1.2 -> 2.1.3 (#57858) 2019-03-18 19:57:20 +01:00
Francesco Gazzetta
1a39920ae0 drawpile: add some comments explaining the deps 2019-03-13 11:30:46 +01:00
Francesco Gazzetta
8cc2a2ffff drawpile: 2.0.11 -> 2.1.2 2019-03-13 11:29:56 +01:00
Francesco Gazzetta
62a2574eb3 drawpile: init at 2.0.11 2018-08-26 21:00:39 +02:00