Commit Graph

25 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
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Jussi Kuokkanen
ce3f586775 pkgs/tools: remove licenses.gpl2 2024-05-02 21:06:26 +02:00
traxys
671d051a48 ckb-next: Fix udev rule
The current udev rule uses `/usr/bin/env sed`, which will fail the build
if the package is added to `services.udev.packages`
2024-04-14 11:38:59 +02:00
Artturi
171a116a56
Merge pull request #242590 from proglottis/update_ckb-next
ckb-next: 0.5.0 -> 0.6.0
2023-10-21 08:29:55 +03:00
Austin Horstman
8f1e764551
treewide: add meta.mainProgram (#251487)
* skhd: add meta.mainProgram

* yabai: add meta.mainProgram

* kitty: add meta.mainProgram

* alacritty: add meta.mainProgram

* thunar: add meta.mainProgram

* looking-glass-client: add meta.mainProgram

* thunderbird: add meta.mainProgram

* ckb-next: add meta.mainProgram

* virt-manager: add meta.mainProgram

* gh: add meta.mainProgram
2023-08-26 15:03:52 +03:00
James Fargher
06c0ac52cc ckb-next: 0.5.0 -> 0.6.0 2023-07-10 16:32:35 +12:00
superherointj
2e19f2fa53 maintainers: remove superherointj 2022-10-04 14:06:48 -03:00
Kier Davis
5f14f77bf2
ckb-next: remove myself from maintainers (#179573)
* ckb-next: remove kierdavis and add superherointj as maintainer

Co-authored-by: superherointj <5861043+superherointj@users.noreply.github.com>
2022-07-03 16:07:34 -03:00
R. Ryantm
c56404ff6e ckb-next: 0.4.4 -> 0.5.0 2022-06-25 07:29:34 +00:00
virchau13
fd9cbb1bed
ckb-next: fix audio by adding libpulseaudio (#143023)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-13 22:58:09 +01:00
kat witch
968885ec4a
ckb-next: 0.4.2 -> 0.4.4 2021-04-22 23:56:40 +01:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Ben Siraphob
76f93cc731 pkgs/tools: pkgconfig -> pkg-config 2021-01-16 23:49:59 -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
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Ryan Fitzsimon
ea8efb20a7 ckb-next: Disable built-in updater 2020-03-15 03:17:58 +00:00
Kier Davis
7fb2103196
ckb-next: 0.3.2 -> 0.4.2 2020-01-02 22:53:32 +00:00
Frederik Rietdijk
98640fd482 Merge master into staging-next 2019-08-27 16:36:47 +02:00
Alkeryn
43ab91e6c4 ckb-next: fix #67371 2019-08-26 15:02:10 +02:00
Vladimír Čunát
985d1ac425
Merge branch 'master' into staging-next
There were several more conflicts from name -> pname+version;
all auto-solved by kdiff3, hopefully OK.

Hydra nixpkgs: ?compare=1538611
2019-08-25 14:57:11 +02:00
Alkeryn
af9f401b9a ckb-next: use qt5's mkDerivation 2019-08-25 13:51:50 +09: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
Kier Davis
7a0d849653
ckb-next: rename ckb-modprobe.patch to modprobe.patch
This keeps the naming consistent with the other two patches in
this directory.
2018-10-22 13:23:30 +01:00
Kier Davis
81178785c9
ckb, ckb module: rename to ckb-next
The upstream package has officially changed its name to ckb-next.
2018-10-22 13:23:30 +01:00