at 23.11-beta 50 lines 1.4 kB view raw
1{lib, stdenv 2, fetchurl 3, fetchpatch 4, bzip2 5, zlib 6, newt 7, openssl 8, pkg-config 9, slang 10, libxcrypt 11, autoreconfHook 12}: 13stdenv.mkDerivation rec { 14 pname = "partimage"; 15 version = "0.6.9"; 16 17 enableParallelBuilding = true; 18 19 src = fetchurl { 20 url = "mirror://sourceforge/partimage/partimage-${version}.tar.bz2"; 21 sha256 = "0db6xiphk6xnlpbxraiy31c5xzj0ql6k4rfkmqzh665yyj0nqfkm"; 22 }; 23 24 configureFlags = [ "--with-ssl-headers=${openssl.dev}/include/openssl" ]; 25 26 nativeBuildInputs = [ pkg-config autoreconfHook ]; 27 buildInputs = [ bzip2 zlib newt newt openssl slang libxcrypt ]; 28 29 patches = [ 30 ./gentoos-zlib.patch 31 (fetchpatch { 32 name = "openssl-1.1.patch"; 33 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-block/partimage/files/" 34 + "partimage-0.6.9-openssl-1.1-compatibility.patch?id=3fe8e9910002b6523d995512a646b063565d0447"; 35 sha256 = "1hs0krxrncxq1w36bhad02yk8yx71zcfs35cw87c82sl2sfwasjg"; 36 }) 37 (fetchpatch { 38 url = "https://sources.debian.org/data/main/p/partimage/0.6.9-8/debian/patches/04-fix-FTBFS-glic-2.28.patch"; 39 sha256 = "0xid5636g58sxbhxnjmfjdy7y8rf3c77zmmpfbbqv4lv9jd2gmxm"; 40 }) 41 ]; 42 43 meta = { 44 description = "Opensource disk backup software"; 45 homepage = "https://www.partimage.org"; 46 license = lib.licenses.gpl2; 47 maintainers = [lib.maintainers.marcweber]; 48 platforms = lib.platforms.linux; 49 }; 50}