2021-01-15 09:19:50 +00:00
|
|
|
{lib, stdenv
|
2019-03-10 14:32:44 +00:00
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, bzip2
|
|
|
|
, zlib
|
|
|
|
, newt
|
|
|
|
, openssl
|
2021-01-17 09:17:16 +00:00
|
|
|
, pkg-config
|
2019-03-10 14:32:44 +00:00
|
|
|
, slang
|
2022-09-29 23:58:43 +00:00
|
|
|
, libxcrypt
|
2019-03-10 14:32:44 +00:00
|
|
|
, autoreconfHook
|
2013-05-16 09:41:58 +00:00
|
|
|
}:
|
2021-08-12 19:47:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "partimage";
|
|
|
|
version = "0.6.9";
|
|
|
|
|
2013-05-16 09:41:58 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-12 19:47:47 +00:00
|
|
|
url = "mirror://sourceforge/partimage/partimage-${version}.tar.bz2";
|
2013-05-16 09:41:58 +00:00
|
|
|
sha256 = "0db6xiphk6xnlpbxraiy31c5xzj0ql6k4rfkmqzh665yyj0nqfkm";
|
|
|
|
};
|
2019-03-10 14:32:44 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--with-ssl-headers=${openssl.dev}/include/openssl" ];
|
2013-05-16 09:41:58 +00:00
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2022-09-29 23:58:43 +00:00
|
|
|
buildInputs = [ bzip2 zlib newt newt openssl slang libxcrypt ];
|
2013-05-16 09:41:58 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./gentoos-zlib.patch
|
2016-03-31 15:56:24 +00:00
|
|
|
(fetchpatch {
|
2019-03-10 14:32:44 +00: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 15:56:24 +00:00
|
|
|
})
|
2020-09-28 23:45:11 +00: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 09:41:58 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Opensource disk backup software";
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://www.partimage.org";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [lib.maintainers.marcweber];
|
|
|
|
platforms = lib.platforms.linux;
|
2013-05-16 09:41:58 +00:00
|
|
|
};
|
|
|
|
}
|