Merge pull request #121896 from raboof/extract-version-test-to-utility

test-utilities: version test
This commit is contained in:
Robert Hensing
2021-05-07 11:56:01 +02:00
committed by GitHub
5 changed files with 57 additions and 11 deletions
+9 -1
View File
@@ -1,4 +1,9 @@
{ lib, stdenv, fetchurl }:
{ lib
, stdenv
, fetchurl
, testVersion
, hello
}:
stdenv.mkDerivation rec {
pname = "hello";
@@ -11,6 +16,9 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru.tests.version =
testVersion { package = hello; };
meta = with lib; {
description = "A program that produces a familiar, friendly greeting";
longDescription = ''