Commit Graph

46 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
Robert Scott
ceeb0dc940 coredns: add nixosTests.kubernetes dns tests to passthru.tests
these tests appear to use coredns
2024-07-09 00:20:56 +01:00
Robert Scott
a2bbafe808 coredns: 1.11.1 -> 1.11.3 2024-07-08 23:28:08 +01: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
Jared Baur
c10a190986
coredns: Fix cross-compile
When running go generate, an intermediate binary is built called
`directives_generate`, which will be built with whatever is defined in
GOARCH and GOOS.
2023-10-02 20:46:10 -07:00
Brendan Taylor
ca80f30909 coredns: 1.11.0 -> 1.11.1
https://github.com/coredns/coredns/releases/tag/v1.11.1
2023-09-30 20:29:43 +02:00
Brendan Taylor
95e66809de coredns: allow adding external plugins
Solves https://github.com/NixOS/nixpkgs/issues/146603

CoreDNS has support for plugins that are added at compile time. This
exposes an argument `externalPlugins` that will build coredns with
the specified plugins.

Example:
```
coredns-fanout = pkgs.coredns.override {
  externalPlugins = [
    {name = "fanout"; repo = "github.com/networkservicemesh/fanout"; version = "v1.9.1";}
  ];
  vendorHash = "<SRI hash>";
};
```
2023-09-27 23:35:47 +02:00
R. Ryantm
174c3d6dff coredns: 1.10.1 -> 1.11.0 2023-08-12 09:13:02 +00:00
R. Ryantm
5ccbeb3a3d coredns: 1.10.0 -> 1.10.1 2023-02-15 14:40:18 +00:00
Daniel Nagy
1f299ec958
coredns: install man pages 2022-12-14 00:30:00 +01:00
superherointj
2e19f2fa53 maintainers: remove superherointj 2022-10-04 14:06:48 -03:00
R. Ryantm
e84ecbc40d coredns: 1.9.4 -> 1.10.0 2022-09-20 06:18:53 +00:00
R. Ryantm
368d037a9a coredns: 1.9.3 -> 1.9.4 2022-09-09 13:01:22 +00:00
superherointj
8d8c50ba2f coredns: 1.9.2 -> 1.9.3 2022-06-20 14:44:38 -03:00
Robert Scott
e9c36e2d76 coredns: fix tests on darwin 2022-05-25 22:45:19 +01:00
R. Ryantm
ff7d60fdcf coredns: 1.9.1 -> 1.9.2 2022-05-25 14:37:32 +00:00
Bobby Rong
5eeca624d5
Merge pull request #163756 from r-ryantm/auto-update/coredns
coredns: 1.9.0 -> 1.9.1
2022-03-18 10:38:36 +08:00
superherointj
2578e884f9 coredns: enable tests 2022-03-16 10:42:28 -03:00
R. Ryantm
138471e084 coredns: 1.9.0 -> 1.9.1 2022-03-12 05:23:45 +00:00
R. Ryantm
353338bfb0 coredns: 1.8.6 -> 1.9.0 2022-02-12 21:23:50 -08:00
R. Ryantm
f35024ee2c coredns: 1.8.5 -> 1.8.6 2021-10-29 08:30:10 +00:00
R. RyanTM
b81a0ff256 coredns: 1.8.4 -> 1.8.5 2021-09-22 03:28:28 +00:00
R. RyanTM
d491dd7313 coredns: 1.8.3 -> 1.8.4 2021-05-29 02:41:42 +00:00
R. RyanTM
b2a6de3b62 coredns: 1.8.1 -> 1.8.3 2021-02-25 08:19:10 +00:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
R. RyanTM
a3b4695042
coredns: 1.8.0 -> 1.8.1 (#110343) 2021-01-21 09:51:38 -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
R. RyanTM
f06af68d0f coredns: 1.7.1 -> 1.8.0 2020-11-02 08:20:56 -08:00
R. RyanTM
aecc33be22 coredns: 1.7.0 -> 1.7.1 2020-09-25 04:10:11 +00:00
Timothy Stott
ba7c0893d4
treewide: remove obsolete attribute goPackagePath in buildGoModule derivations (#95092)
The buildGoModule infrastructure does not make use of goPackagePath it is a residue from buildGoPackage.
2020-08-11 21:04:55 +00:00
zowoq
cea7cd902e buildGoModule packages: set doCheck = false 2020-08-10 16:02:30 +10:00
zowoq
3c5750d1cd buildGoModule packages: editorconfig fixes 2020-07-31 13:58:04 +10:00
Matt Layher
6b9c728ef9 coredns: 1.6.9 -> 1.7.0 2020-06-19 09:01:44 -04:00
Colin L Rice
d6162dab50
go-modules: Update files to use vendorSha256 2020-05-14 07:22:21 +01:00
R. RyanTM
8866b7d72f coredns: 1.6.7 -> 1.6.9 2020-04-01 10:17:44 +00:00
Jörg Thalheim
066db11215
Revert "Merge pull request #83099 from marsam/fix-buildGoModule-packages-darwin"
This reverts commit 4e6bf03504, reversing
changes made to afd997aab6.

Instead we propagate those frameworks from the compiler again
2020-03-27 07:33:21 +00:00
Mario Rodas
36ae531bc2 coredns: fix build on darwin 2020-03-21 04:46:00 -05:00
R. RyanTM
5389e95ce0 coredns: 1.6.6 -> 1.6.7 2020-03-14 04:28:21 +00:00
Oleksii Filonenko
03aa4ac48f
coredns: 1.3.1 -> 1.6.6 2019-12-16 14:07:43 +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
Duarte David
f7a16402b4 coredns: Add deltaevo as maintainer 2019-02-03 16:32:56 +01:00
Duarte David
d80b81ab5d coredns: 005 -> 1.3.1 2019-01-30 12:50:31 +01:00
adisbladis
04c26d79c2
coredns: Fix hash 2018-07-11 16:55:17 +08:00
Rene Treffer
055d6399ef coredns: 001 -> 005 2017-02-19 21:26:10 +01:00
rushmorem
b93b37cf0a coredns: init at 001 2016-09-22 01:11:13 +02:00