Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 60 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 m4, 6 pkg-config, 7 tcl, 8 bzip2, 9 elfutils, 10 libarchive, 11 libbsd, 12 xz, 13 openssl, 14 zlib, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "pkg"; 19 version = "2.1.4"; 20 21 src = fetchFromGitHub { 22 owner = "freebsd"; 23 repo = "pkg"; 24 rev = finalAttrs.version; 25 hash = "sha256-aqNJGor6gH/7XjwuT2uD7L89wn1kzsFKBMlitSVjUCM="; 26 }; 27 28 setOutputFlags = false; 29 separateDebugInfo = true; 30 31 nativeBuildInputs = [ 32 m4 33 pkg-config 34 tcl 35 ]; 36 buildInputs = [ 37 bzip2 38 elfutils 39 libarchive 40 openssl 41 xz 42 zlib 43 ] 44 ++ lib.optional stdenv.hostPlatform.isLinux libbsd; 45 46 enableParallelBuilding = true; 47 48 preInstall = '' 49 mkdir -p $out/etc 50 ''; 51 52 meta = with lib; { 53 homepage = "https://github.com/freebsd/pkg"; 54 description = "Package management tool for FreeBSD"; 55 maintainers = with maintainers; [ qyliss ]; 56 platforms = with platforms; darwin ++ freebsd ++ linux ++ netbsd ++ openbsd; 57 license = licenses.bsd2; 58 mainProgram = "pkg"; 59 }; 60})