diff options
author | Alex Rice <alexrice999@hotmail.co.uk> | 2021-03-30 13:54:02 +0100 |
---|---|---|
committer | Alex Rice <alexrice999@hotmail.co.uk> | 2021-03-30 13:54:02 +0100 |
commit | 0e162b97d6a35cd96f10ecda5a1c295e6aeed612 (patch) | |
tree | 6ee5dd04666584be11295ba5ca6527885d1a19f5 | |
parent | c60bd180065e37891b952c7cbdbe93ed293d6165 (diff) | |
download | nixpkgs-0e162b97d6a35cd96f10ecda5a1c295e6aeed612.tar nixpkgs-0e162b97d6a35cd96f10ecda5a1c295e6aeed612.tar.gz nixpkgs-0e162b97d6a35cd96f10ecda5a1c295e6aeed612.tar.bz2 nixpkgs-0e162b97d6a35cd96f10ecda5a1c295e6aeed612.tar.lz nixpkgs-0e162b97d6a35cd96f10ecda5a1c295e6aeed612.tar.xz nixpkgs-0e162b97d6a35cd96f10ecda5a1c295e6aeed612.tar.zst nixpkgs-0e162b97d6a35cd96f10ecda5a1c295e6aeed612.zip |
agda nixos test: add to passthru for agda + stdlib
-rw-r--r-- | pkgs/build-support/agda/default.nix | 7 | ||||
-rw-r--r-- | pkgs/development/libraries/agda/standard-library/default.nix | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/build-support/agda/default.nix b/pkgs/build-support/agda/default.nix index d610a8f9a61..984d61f1f75 100644 --- a/pkgs/build-support/agda/default.nix +++ b/pkgs/build-support/agda/default.nix @@ -1,6 +1,6 @@ # Builder for Agda packages. -{ stdenv, lib, self, Agda, runCommandNoCC, makeWrapper, writeText, mkShell, ghcWithPackages }: +{ stdenv, lib, self, Agda, runCommandNoCC, makeWrapper, writeText, mkShell, ghcWithPackages, nixosTests }: with lib.strings; @@ -18,7 +18,10 @@ let in runCommandNoCC "${pname}-${version}" { inherit pname version; nativeBuildInputs = [ makeWrapper ]; - passthru.unwrapped = Agda; + passthru = { + unwrapped = Agda; + tests = { inherit (nixosTests) agda; }; + }; } '' mkdir -p $out/bin makeWrapper ${Agda}/bin/agda $out/bin/agda \ diff --git a/pkgs/development/libraries/agda/standard-library/default.nix b/pkgs/development/libraries/agda/standard-library/default.nix index 4bd5de8bd48..fd20a0d9a97 100644 --- a/pkgs/development/libraries/agda/standard-library/default.nix +++ b/pkgs/development/libraries/agda/standard-library/default.nix @@ -1,4 +1,4 @@ -{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages }: +{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages, nixosTests }: mkDerivation rec { pname = "standard-library"; @@ -19,6 +19,7 @@ mkDerivation rec { rm EverythingSafe.agda EverythingSafeGuardedness.agda EverythingSafeSizedTypes.agda ''; + passthru.tests = { inherit (nixosTests) agda; }; meta = with lib; { homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary"; description = "A standard library for use with the Agda compiler"; |