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 /pkgs/build-support/agda | |
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
Diffstat (limited to 'pkgs/build-support/agda')
-rw-r--r-- | pkgs/build-support/agda/default.nix | 7 |
1 files changed, 5 insertions, 2 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 \ |