diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2021-05-07 15:48:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 15:48:33 +0200 |
commit | 316b82563a7793a4a88bed9e41adb936d9adc969 (patch) | |
tree | 75eb6c1d853ddfe694bbba9a85cae46d84d13747 /pkgs/development | |
parent | 7ea6fae80235106e53fbda1cdc7845fe6778381f (diff) | |
parent | 7bd3c0c2dfcaca2949bf9c2049eb884fc7da7756 (diff) |
Merge pull request #121702 from hercules-ci/nixos-hercules-ci-agent-update
nixos/hercules-ci-agent: updates
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix b/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix index ccb8b4eba656a..bc464c2024e48 100644 --- a/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix +++ b/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix @@ -1,4 +1,4 @@ -{ gnutar, gzip, git, haskell, haskellPackages, lib, makeWrapper, runc, stdenv }: +{ gnutar, gzip, git, haskell, haskellPackages, lib, makeWrapper, nixos, runc, stdenv }: let inherit (haskell.lib) overrideCabal addBuildDepends; inherit (lib) makeBinPath; @@ -16,8 +16,16 @@ let makeWrapper $out/libexec/hercules-ci-agent $out/bin/hercules-ci-agent --prefix PATH : ${makeBinPath bundledBins} ''; }); -in pkg // { - meta = pkg.meta // { +in pkg.overrideAttrs (o: { + meta = o.meta // { position = toString ./default.nix + ":1"; }; - } + passthru = o.passthru // { + # Does not test the package, but evaluation of the related NixOS module. + tests.nixos-minimal-config = nixos { + boot.loader.grub.enable = false; + fileSystems."/".device = "bogus"; + services.hercules-ci-agent.enable = true; + }; + }; + }) |