2019-03-10 15:32:44 +01:00
|
|
|
{stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, bzip2
|
|
|
|
, zlib
|
|
|
|
, newt
|
|
|
|
, openssl
|
|
|
|
, pkgconfig
|
|
|
|
, slang
|
|
|
|
, autoreconfHook
|
2013-05-16 11:41:58 +02:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "partimage-0.6.9";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "mirror://sourceforge/partimage/partimage-0.6.9.tar.bz2";
|
2013-05-16 11:41:58 +02:00
|
|
|
sha256 = "0db6xiphk6xnlpbxraiy31c5xzj0ql6k4rfkmqzh665yyj0nqfkm";
|
|
|
|
};
|
2019-03-10 15:32:44 +01:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--with-ssl-headers=${openssl.dev}/include/openssl" ];
|
2013-05-16 11:41:58 +02:00
|
|
|
|
2019-03-10 15:32:44 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
buildInputs = [ bzip2 zlib newt newt openssl slang ];
|
2013-05-16 11:41:58 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./gentoos-zlib.patch
|
2016-03-31 17:56:24 +02:00
|
|
|
(fetchpatch {
|
2019-03-10 15:32:44 +01:00
|
|
|
name = "openssl-1.1.patch";
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-block/partimage/files/"
|
|
|
|
+ "partimage-0.6.9-openssl-1.1-compatibility.patch?id=3fe8e9910002b6523d995512a646b063565d0447";
|
|
|
|
sha256 = "1hs0krxrncxq1w36bhad02yk8yx71zcfs35cw87c82sl2sfwasjg";
|
2016-03-31 17:56:24 +02:00
|
|
|
})
|
2020-09-29 01:45:11 +02:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/p/partimage/0.6.9-8/debian/patches/04-fix-FTBFS-glic-2.28.patch";
|
|
|
|
sha256 = "0xid5636g58sxbhxnjmfjdy7y8rf3c77zmmpfbbqv4lv9jd2gmxm";
|
|
|
|
})
|
2013-05-16 11:41:58 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Opensource disk backup software";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.partimage.org";
|
2013-05-16 11:41:58 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|