Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1e593070cdd8
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 053ad4e0db72
Choose a head ref

Commits on Mar 7, 2020

  1. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    3d266cc View commit details
  2. minikube: 1.2.0 -> 1.3.1

    AtkinsChang committed Mar 7, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    37aab73 View commit details
  3. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    036c2fe View commit details
  4. minikube: 1.3.1 -> 1.5.2

    AtkinsChang committed Mar 7, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    8d5e32e View commit details
  5. minikube: 1.5.2 -> 1.6.2

    AtkinsChang committed Mar 7, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    d6fe4e1 View commit details
  6. minikube: 1.6.2 -> 1.8.1

    AtkinsChang committed Mar 7, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    AtkinsChang Atkins
    Copy the full SHA
    d8b2f2b View commit details

Commits on Mar 15, 2020

  1. rx: 0.3.2 -> 0.4.0

    dywedir committed Mar 15, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    dywedir Vlad M.
    Copy the full SHA
    ac10652 View commit details

Commits on Mar 16, 2020

  1. habitat: 0.30.2 -> 0.90.6

    The build has been broken on master for a very long time, for want of an
    upgrade. This continues the effort put forth here:
    NixOS/nixpkgs#63105
    
    Note that while there are newer versions than this, upgrading to those requires
    getting some Cargo protobuf dependencies to compile. Since this fixes the
    failing build, it seems like a good start.
    
    Upstream does not appear to have any Darin builds in their CI, and we do not
    have a Darwin maintainer available, so this disables it as well.
    bhipple committed Mar 16, 2020
    Copy the full SHA
    b7ef716 View commit details

Commits on Mar 17, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Copy the full SHA
    2cc3a34 View commit details
  2. lib/modules: Remove internal _module attribute from config

    The _module option is added as an internal option set, and it messes up
    the results of module evaluations, requiring people to manually filter
    _modules out.
    
    If people depend on this, they can still use config._module from inside
    the modules, exposing _module as an explicitly declared user option. Or
    alternatively with the _module attribute now returned by evalModules.
    infinisil committed Mar 17, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    dcdd232 View commit details

Commits on Mar 18, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    15c873b View commit details
  2. lib/modules: Fix type checks not being done before merging

    Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
    infinisil and roberth committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    e931de5 View commit details
  3. gotestsum: 0.4.0 -> 0.4.1

    r-ryantm authored and marsam committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    560036d View commit details
  4. ocamlPackages.lacaml: 11.0.3 -> 11.0.6

    bcdarwin authored and vbgl committed Mar 18, 2020
    Copy the full SHA
    8e44423 View commit details
  5. libite: 2.1.2 -> 2.2.0

    r-ryantm committed Mar 18, 2020
    Copy the full SHA
    7f31ed0 View commit details
  6. Merge pull request #82832 from r-ryantm/auto-update/libite

    libite: 2.1.2 -> 2.2.0
    lsix authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    071d0cc View commit details
  7. Merge pull request #82751 from Infinisil/minor-module-improvements

    Minor module improvements
    roberth authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5f357b2 View commit details
  8. kubeval: don't build against schema by default

    kubeval-schema is a huge 7GB repository that we do not want
    to build on hydra. Therefore make it optional.
    Mic92 committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    9d144b8 View commit details
  9. blsd: marked as broken

    no longer compatible without libgit version.
    Also seems unmaintained since 3 years.
    Mic92 committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    97ac11f View commit details
  10. Merge pull request #82836 from Mic92/bsld

    blsd: marked as broken
    Mic92 authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7050002 View commit details
  11. Merge pull request #82816 from Mic92/kubeval

    kubeval: don't include huge schema to save space in hydra
    Mic92 authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    52ee55f View commit details
  12. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Copy the full SHA
    3c54b99 View commit details
  13. Merge pull request #66578 from AtkinsChang/minikube

     minikube: 1.2.0 -> 1.6.2
    Mic92 authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    201ac90 View commit details
  14. buildGoModule: enable strictDeps

    This will improve cross compiling in the long run.
    See also NixOS/nixpkgs#82786
    Mic92 committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    060a922 View commit details
  15. magnetico: move go-bindata to nativeBuildInputs

    fixes strictDeps
    Mic92 committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    72f3f99 View commit details
  16. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    e63be52 View commit details
  17. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    f288afe View commit details
  18. imgproxy: fix strict deps build

    Mic92 committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    f545f92 View commit details
  19. aerc: fix strict deps build

    Mic92 committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    b514445 View commit details
  20. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    ae08790 View commit details
  21. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    ea87180 View commit details
  22. Merge pull request #82736 from LeshaInc/master

    blender: add OpenImageDenoise support
    veprbl authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ddf87fb View commit details
  23. Copy the full SHA
    243ec84 View commit details
  24. Merge pull request #82646 from dywedir/rx

    rx: 0.3.2 -> 0.4.0
    dywedir authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9c2e996 View commit details
  25. Merge pull request #82787 from Mic92/cross-build-go-module

    buildGoModule: enable strictDeps
    Mic92 authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8590ddd View commit details
  26. Merge pull request #82845 from zowoq/buildah

    buildah: 1.14.2 -> 1.14.3
    marsam authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    69a3ce9 View commit details
  27. Merge pull request #82826 from r-ryantm/auto-update/gotestsum

    gotestsum: 0.4.0 -> 0.4.1
    marsam authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ec7db16 View commit details
  28. Merge pull request #82213 from bhipple/fix/habitat

    habitat: 0.30.2 -> 0.90.6
    Mic92 authored Mar 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    053ad4e View commit details
Showing with 186 additions and 126 deletions.
  1. +11 −6 lib/modules.nix
  2. +8 −0 lib/tests/modules.sh
  3. +3 −0 lib/tests/modules/declare-option-set.nix
  4. +12 −0 maintainers/maintainer-list.nix
  5. +6 −6 pkgs/applications/graphics/rx/default.nix
  6. +2 −2 pkgs/applications/misc/blender/default.nix
  7. +22 −0 pkgs/applications/networking/cluster/docker-machine/hyperkit.nix
  8. +6 −16 pkgs/applications/networking/cluster/docker-machine/kvm2.nix
  9. +13 −18 pkgs/applications/networking/cluster/habitat/default.nix
  10. +0 −25 pkgs/applications/networking/cluster/kubeval/default.nix
  11. +15 −0 pkgs/applications/networking/cluster/kubeval/schema.nix
  12. +29 −30 pkgs/applications/networking/cluster/minikube/default.nix
  13. +3 −1 pkgs/applications/networking/cluster/openshift/default.nix
  14. +1 −3 pkgs/applications/networking/mailreaders/aerc/default.nix
  15. +1 −1 pkgs/applications/networking/p2p/magnetico/default.nix
  16. +1 −1 pkgs/applications/virtualization/gvisor/containerd-shim.nix
  17. +2 −0 pkgs/development/go-modules/generic/default.nix
  18. +2 −2 pkgs/development/libraries/libite/default.nix
  19. +25 −0 pkgs/development/libraries/openimagedenoise/default.nix
  20. +2 −2 pkgs/development/ocaml-modules/lacaml/default.nix
  21. +2 −2 pkgs/development/tools/buildah/default.nix
  22. +5 −3 pkgs/development/tools/gotestsum/default.nix
  23. +1 −1 pkgs/servers/documize-community/default.nix
  24. +3 −5 pkgs/servers/imgproxy/default.nix
  25. +5 −2 pkgs/servers/teleport/default.nix
  26. +1 −0 pkgs/tools/misc/blsd/default.nix
  27. +5 −0 pkgs/top-level/all-packages.nix
17 changes: 11 additions & 6 deletions lib/modules.nix
Original file line number Diff line number Diff line change
@@ -93,7 +93,11 @@ rec {
res set._definedNames
else
res;
result = { inherit options config; };
result = {
inherit options;
config = removeAttrs config [ "_module" ];
inherit (config) _module;
};
in result;

# collectModules :: (modulesPath: String) -> (modules: [ Module ]) -> (args: Attrs) -> [ Module ]
@@ -295,7 +299,9 @@ rec {
in
throw "The option `${showOption loc}' in `${firstOption._file}' is a prefix of options in `${firstNonOption._file}'."
else
mergeModules' loc decls defns
if all (def: isAttrs def.value) defns' then mergeModules' loc decls defns
else let firstInvalid = findFirst (def: ! isAttrs def.value) null defns';
in throw "The option path `${showOption loc}' is an attribute set of options, but it is defined to not be an attribute set in `${firstInvalid.file}'. Did you define its value at the correct and complete path?"
))
// { _definedNames = map (m: { inherit (m) file; names = attrNames m.config; }) configs; };

@@ -410,10 +416,9 @@ rec {
# Type-check the remaining definitions, and merge them. Or throw if no definitions.
mergedValue =
if isDefined then
foldl' (res: def:
if type.check def.value then res
else throw "The option value `${showOption loc}' in `${def.file}' is not of type `${type.description}'."
) (type.merge loc defsFinal) defsFinal
if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
in throw "The option value `${showOption loc}' in `${firstInvalid.file}' is not of type `${type.description}'."
else
# (nixos-option detects this specific error message and gives it special
# handling. If changed here, please change it there too.)
8 changes: 8 additions & 0 deletions lib/tests/modules.sh
Original file line number Diff line number Diff line change
@@ -199,6 +199,14 @@ checkConfigOutput "true" config.conditionalWorks ./declare-attrsOf.nix ./attrsOf
checkConfigOutput "false" config.conditionalWorks ./declare-lazyAttrsOf.nix ./attrsOf-conditional-check.nix
checkConfigOutput "empty" config.value.foo ./declare-lazyAttrsOf.nix ./attrsOf-conditional-check.nix

# Check error for when an option set is defined to be a non-attribute set value
checkConfigError 'The option path .* is an attribute set of options, but it is defined to not be an attribute set in' \
config.value ./declare-option-set.nix ./define-value-int-zero.nix

# Even with multiple assignments, a type error should be thrown if any of them aren't valid
checkConfigError 'The option value .* in .* is not of type .*' \
config.value ./declare-int-unsigned-value.nix ./define-value-list.nix ./define-value-int-positive.nix

cat <<EOF
====== module tests ======
$pass Pass
3 changes: 3 additions & 0 deletions lib/tests/modules/declare-option-set.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
options.value = {};
}
12 changes: 12 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -711,6 +711,12 @@
githubId = 55833;
name = "Troels Henriksen";
};
atkinschang = {
email = "atkinschang+nixpkgs@gmail.com";
github = "AtkinsChang";
githubId = 5193600;
name = "Atkins Chang";
};
atnnn = {
email = "etienne@atnnn.com";
github = "atnnn";
@@ -4142,6 +4148,12 @@
github = "leonardoce";
name = "Leonardo Cecchi";
};
leshainc = {
email = "leshainc@fomalhaut.me";
github = "LeshaInc";
githubId = 42153076;
name = "Alexey Nikashkin";
};
lethalman = {
email = "lucabru@src.gnome.org";
github = "lethalman";
12 changes: 6 additions & 6 deletions pkgs/applications/graphics/rx/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{ stdenv, rustPlatform, fetchFromGitHub, makeWrapper
, cmake, pkgconfig
, cmake, pkg-config
, xorg ? null
, libGL ? null }:

with stdenv.lib;

rustPlatform.buildRustPackage rec {
pname = "rx";
version = "0.3.2";
version = "0.4.0";

src = fetchFromGitHub {
owner = "cloudhead";
repo = pname;
rev = "v${version}";
sha256 = "1n5s7v2z13550gkqz7w6dw62jdy60wdi8w1lfa23609b4yhg4w94";
sha256 = "1pln65pqy39ijrld11d06klwzfhhzmrgdaxijpx9q7w9z66zmqb8";
};

cargoSha256 = "077cs9bf7f3h5aschcv7pbbnpaq1rg79j7f6pnyrzkmn7gxzicg3";
cargoSha256 = "143a5x61s7ywk0ljqd10jkfvs6lrhlibkm2a9lw41wq13mgzb78j";

nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
nativeBuildInputs = [ cmake pkg-config makeWrapper ];

buildInputs = optionals stdenv.isLinux
(with xorg; [
@@ -37,7 +37,7 @@ rustPlatform.buildRustPackage rec {

meta = {
description = "Modern and extensible pixel editor implemented in Rust";
homepage = "https://cloudhead.io/rx/";
homepage = "https://rx.cloudhead.io/";
license = licenses.gpl3;
maintainers = with maintainers; [ minijackson filalex77 ];
platforms = [ "x86_64-linux" ];
4 changes: 2 additions & 2 deletions pkgs/applications/misc/blender/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ config, stdenv, lib, fetchurl, boost, cmake, ffmpeg, gettext, glew
, ilmbase, libXi, libX11, libXext, libXrender
, libjpeg, libpng, libsamplerate, libsndfile
, libtiff, libGLU, libGL, openal, opencolorio, openexr, openimageio2, openjpeg, python3Packages
, libtiff, libGLU, libGL, openal, opencolorio, openexr, openimagedenoise, openimageio2, openjpeg, python3Packages
, openvdb, libXxf86vm, tbb, alembic
, zlib, fftw, opensubdiv, freetype, jemalloc, ocl-icd, addOpenGLRunpath
, jackaudioSupport ? false, libjack2
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
buildInputs =
[ boost ffmpeg gettext glew ilmbase
freetype libjpeg libpng libsamplerate libsndfile libtiff
opencolorio openexr openimageio2 openjpeg python zlib fftw jemalloc
opencolorio openexr openimagedenoise openimageio2 openjpeg python zlib fftw jemalloc
alembic
(opensubdiv.override { inherit cudaSupport; })
tbb
22 changes: 22 additions & 0 deletions pkgs/applications/networking/cluster/docker-machine/hyperkit.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ lib, buildGoModule, minikube }:

buildGoModule rec {
inherit (minikube) version src nativeBuildInputs buildInputs goPackagePath preBuild;

pname = "docker-machine-hyperkit";
subPackages = [ "cmd/drivers/hyperkit" ];

modSha256 = minikube.go-modules.outputHash;

postInstall = ''
mv $out/bin/hyperkit $out/bin/docker-machine-driver-hyperkit
'';

meta = with lib; {
homepage = https://github.com/kubernetes/minikube/blob/master/docs/drivers.md;
description = "HyperKit driver for docker-machine.";
license = licenses.asl20;
maintainers = with maintainers; [ atkinschang ];
platforms = platforms.darwin;
};
}
22 changes: 6 additions & 16 deletions pkgs/applications/networking/cluster/docker-machine/kvm2.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
{ stdenv, buildGoModule, libvirt, pkgconfig, minikube }:
{ lib, buildGoModule, minikube }:

buildGoModule rec {
pname = "docker-machine-kvm2";
version = minikube.version;
inherit (minikube) version src nativeBuildInputs buildInputs goPackagePath preBuild;

goPackagePath = "k8s.io/minikube";
pname = "docker-machine-kvm2";
subPackages = [ "cmd/drivers/kvm" ];

src = minikube.src;

modSha256 = minikube.go-modules.outputHash;

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libvirt ];

preBuild = ''
export buildFlagsArray=(-ldflags="-X k8s.io/minikube/pkg/drivers/kvm/version.VERSION=v${version}")
'';
modSha256 = minikube.go-modules.outputHash;

postInstall = ''
mv $out/bin/kvm $out/bin/docker-machine-driver-kvm2
'';

meta = with stdenv.lib; {
meta = with lib; {
homepage = https://github.com/kubernetes/minikube/blob/master/docs/drivers.md;
description = "KVM2 driver for docker-machine.";
license = licenses.asl20;
maintainers = with maintainers; [ tadfisher ];
maintainers = with maintainers; [ tadfisher atkinschang ];
platforms = platforms.unix;
};
}
31 changes: 13 additions & 18 deletions pkgs/applications/networking/cluster/habitat/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
{ lib, fetchFromGitHub, rustPlatform, pkgconfig
, libsodium, libarchive, openssl }:
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig
, libsodium, libarchive, openssl, zeromq }:

with rustPlatform;

buildRustPackage rec {
rustPlatform.buildRustPackage rec {
pname = "habitat";
version = "0.30.2";
# Newer versions required protobuf, which requires some finesse to get to
# compile with the vendored protobuf crate.
version = "0.90.6";

src = fetchFromGitHub {
owner = "habitat-sh";
repo = "habitat";
rev = version;
sha256 = "0pqrm85pd9hqn5fwqjbyyrrfh4k7q9mi9qy9hm8yigk5l8mw44y1";
sha256 = "0rwi0lkmhlq4i8fba3s9nd9ajhz2dqxzkgfp5i8y0rvbfmhmfd6b";
};

# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;

cargoSha256 = "1ahfm5agvabqqqgjsyjb95xxbc7mng1mdyclcakwp1m1qdkxx9p0";

buildInputs = [ libsodium libarchive openssl ];
cargoSha256 = "08sncz0jgsr2s821j3s4bk7d54xqwmnld7m57avavym1xqvsnbmy";

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libsodium libarchive openssl zeromq ];

cargoBuildFlags = ["--package hab"];

@@ -32,12 +28,11 @@ buildRustPackage rec {
runHook postCheck
'';

meta = with lib; {
meta = with stdenv.lib; {
description = "An application automation framework";
homepage = https://www.habitat.sh;
homepage = "https://www.habitat.sh";
license = licenses.asl20;
maintainers = [ maintainers.rushmorem ];
platforms = [ "x86_64-linux" "x86_64-darwin" ];
broken = true; # mark temporary as broken due git dependencies
maintainers = with maintainers; [ rushmorem ];
platforms = [ "x86_64-linux" ];
};
}
25 changes: 0 additions & 25 deletions pkgs/applications/networking/cluster/kubeval/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
{ stdenv, lib, fetchFromGitHub, buildGoModule, makeWrapper }:

let

# Cache schema as a package so network calls are not
# necessary at runtime, allowing use in package builds
schema = stdenv.mkDerivation {
name = "kubeval-schema";
src = fetchFromGitHub {
owner = "instrumenta";
repo = "kubernetes-json-schema";
rev = "6a498a60dc68c5f6a1cc248f94b5cd1e7241d699";
sha256 = "1y9m2ma3n4h7sf2lg788vjw6pkfyi0fa7gzc870faqv326n6x2jr";
};

installPhase = ''
mkdir -p $out/kubernetes-json-schema/master
cp -R . $out/kubernetes-json-schema/master
'';
};

in

buildGoModule rec {
pname = "kubeval";
version = "0.14.0";
@@ -32,12 +11,8 @@ buildGoModule rec {
sha256 = "0kpwk7bv36m3i8vavm1pqc8l611c6l9qbagcc64v6r85qig4w5xv";
};

buildInputs = [ makeWrapper ];

modSha256 = "0y9x44y3bchi8xg0a6jmp2rmi8dybkl6qlywb6nj1viab1s8dd4y";

postFixup = "wrapProgram $out/bin/kubeval --set KUBEVAL_SCHEMA_LOCATION file:///${schema}/kubernetes-json-schema/master";

meta = with lib; {
description = "Validate your Kubernetes configuration files";
homepage = https://github.com/instrumenta/kubeval;
15 changes: 15 additions & 0 deletions pkgs/applications/networking/cluster/kubeval/schema.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ fetchFromGitHub }:
# To cache schema as a package so network calls are not
# necessary at runtime, allowing use in package builds you can use the following:

# KUBEVAL_SCHEMA_LOCATION="file:///${kubeval-schema}";
(fetchFromGitHub {
name = "kubeval-schema";
owner = "instrumenta";
repo = "kubernetes-json-schema";
rev = "6a498a60dc68c5f6a1cc248f94b5cd1e7241d699";
sha256 = "1y9m2ma3n4h7sf2lg788vjw6pkfyi0fa7gzc870faqv326n6x2jr";
}) // {
# the schema is huge (> 7GB), we don't get any benefit from building int on hydra
meta.hydraPlatforms = [];
}
Loading