bzip2: Add meta.pkgConfigModules
and test
This commit is contained in:
parent
2c1fc43a43
commit
18a0b82750
2 changed files with 9 additions and 3 deletions
|
@ -78,6 +78,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.msteen ];
|
maintainers = [ maintainers.msteen ];
|
||||||
# TODO: Resolve the issues with the Mono bindings.
|
# TODO: Resolve the issues with the Mono bindings.
|
||||||
broken = monoSupport && (gtkVersion != "2");
|
broken = monoSupport;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib, stdenv, fetchurl
|
{ lib, stdenv, fetchurl
|
||||||
, linkStatic ? with stdenv.hostPlatform; isStatic || isCygwin
|
, linkStatic ? with stdenv.hostPlatform; isStatic || isCygwin
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||||
|
@ -8,7 +9,9 @@
|
||||||
# cgit) that are needed here should be included directly in Nixpkgs as
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
||||||
# files.
|
# files.
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: let
|
||||||
|
inherit (finalAttrs) version;
|
||||||
|
in {
|
||||||
pname = "bzip2";
|
pname = "bzip2";
|
||||||
version = "1.0.8";
|
version = "1.0.8";
|
||||||
|
|
||||||
|
@ -53,12 +56,15 @@ stdenv.mkDerivation rec {
|
||||||
ln -s $out/lib/libbz2.so.1.0.* $out/lib/libbz2.so.1.0
|
ln -s $out/lib/libbz2.so.1.0.* $out/lib/libbz2.so.1.0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "High-quality data compression program";
|
description = "High-quality data compression program";
|
||||||
homepage = "https://www.sourceware.org/bzip2";
|
homepage = "https://www.sourceware.org/bzip2";
|
||||||
changelog = "https://sourceware.org/git/?p=bzip2.git;a=blob;f=CHANGES;hb=HEAD";
|
changelog = "https://sourceware.org/git/?p=bzip2.git;a=blob;f=CHANGES;hb=HEAD";
|
||||||
license = licenses.bsdOriginal;
|
license = licenses.bsdOriginal;
|
||||||
|
pkgConfigModules = [ "bzip2" ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ mic92 ];
|
maintainers = with maintainers; [ mic92 ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue