mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
agda nixos test: add to passthru for agda + stdlib
This commit is contained in:
parent
c60bd18006
commit
0e162b97d6
2 changed files with 7 additions and 3 deletions
|
@ -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 \
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue