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