Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 testers, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "bzip3"; 12 version = "1.5.2"; 13 14 outputs = [ 15 "bin" 16 "dev" 17 "out" 18 ]; 19 20 src = fetchFromGitHub { 21 owner = "kspalaiologos"; 22 repo = "bzip3"; 23 rev = finalAttrs.version; 24 hash = "sha256-mu95ZYkD0isDuHdHcU4zhWxCTlaYXoM85j76IGwVAak="; 25 }; 26 27 postPatch = '' 28 echo -n "${finalAttrs.version}" > .tarball-version 29 patchShebangs build-aux 30 31 # build-aux/ax_subst_man_date.m4 calls git if the file exists 32 rm .gitignore 33 ''; 34 35 nativeBuildInputs = [ 36 autoreconfHook 37 pkg-config 38 ]; 39 40 configureFlags = [ 41 "--disable-arch-native" 42 ] 43 ++ lib.optionals stdenv.hostPlatform.isDarwin [ "--disable-link-time-optimization" ]; 44 45 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 46 47 meta = { 48 description = "Better and stronger spiritual successor to BZip2"; 49 homepage = "https://github.com/kspalaiologos/bzip3"; 50 changelog = "https://github.com/kspalaiologos/bzip3/blob/${finalAttrs.src.rev}/NEWS"; 51 license = lib.licenses.lgpl3Plus; 52 maintainers = with lib.maintainers; [ dotlambda ]; 53 pkgConfigModules = [ "bzip3" ]; 54 platforms = lib.platforms.unix; 55 }; 56})