2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchgit, fetchpatch, autoreconfHook }:
|
2014-08-17 20:56:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.2.20";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libtar";
|
2014-08-21 18:28:25 +00:00
|
|
|
|
2014-08-17 20:56:52 +00:00
|
|
|
# Maintenance repo for libtar (Arch Linux uses this)
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://repo.or.cz/libtar.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "1pjsqnqjaqgkzf1j8m6y5h76bwprffsjjj6gk8rh2fjsha14rqn9";
|
|
|
|
};
|
|
|
|
|
2014-08-21 18:28:25 +00:00
|
|
|
patches = let
|
|
|
|
fp = name: sha256:
|
|
|
|
fetchpatch {
|
2018-11-24 18:21:12 +00:00
|
|
|
url = "https://sources.debian.net/data/main/libt/libtar/1.2.20-4/debian/patches/${name}.patch";
|
2014-08-21 18:28:25 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
in [
|
|
|
|
(fp "no_static_buffers" "0yv90bhvqjj0v650gzn8fbzhdhzx5z0r1lh5h9nv39wnww435bd0")
|
|
|
|
(fp "no_maxpathlen" "11riv231wpbdb1cm4nbdwdsik97wny5sxcwdgknqbp61ibk572b7")
|
|
|
|
(fp "CVE-2013-4420" "0d010190bqgr2ggy02qwxvjaymy9a22jmyfwdfh4086v876cbxpq")
|
|
|
|
(fp "th_get_size-unsigned-int" "1ravbs5yrfac98mnkrzciw9hd2fxq4dc07xl3wx8y2pv1bzkwm41")
|
|
|
|
];
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ];
|
2014-08-17 20:56:52 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-08-17 20:56:52 +00:00
|
|
|
description = "C library for manipulating POSIX tar files";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://repo.or.cz/libtar";
|
2014-08-17 20:56:52 +00:00
|
|
|
license = licenses.bsd3;
|
2018-03-11 06:38:34 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2014-08-17 20:56:52 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|