libplist: 2.2.0+date=2022-04-05 -> 2.3.0

This commit is contained in:
Theodore Ni 2023-06-04 23:54:03 -07:00
parent 0dd3a05f36
commit bcabf6bc4a
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -10,21 +10,17 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libplist"; pname = "libplist";
version = "2.2.0+date=2022-04-05"; version = "2.3.0";
outputs = [ "bin" "dev" "out" ] ++ lib.optional enablePython "py"; outputs = [ "bin" "dev" "out" ] ++ lib.optional enablePython "py";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "libimobiledevice"; owner = "libimobiledevice";
repo = pname; repo = pname;
rev = "db93bae96d64140230ad050061632531644c46ad"; rev = version;
hash = "sha256-8e/PFDhsyrOgmI3vLT1YhcROmbJgArDAJSe8Z2bZafo="; hash = "sha256-fZfDSWVRg73dN+WF6LbgRSj8vtyeKeyjC8pWXFxUmBg=";
}; };
postPatch = ''
echo '${version}' > .tarball-version
'';
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
pkg-config pkg-config
@ -35,10 +31,18 @@ stdenv.mkDerivation rec {
python3.pkgs.cython python3.pkgs.cython
]; ];
configureFlags = lib.optionals (!enablePython) [ preAutoreconf = ''
export RELEASE_VERSION=${version}
'';
configureFlags = [
"--enable-debug"
] ++ lib.optionals (!enablePython) [
"--without-cython" "--without-cython"
]; ];
doCheck = true;
postFixup = lib.optionalString enablePython '' postFixup = lib.optionalString enablePython ''
moveToOutput "lib/${python3.libPrefix}" "$py" moveToOutput "lib/${python3.libPrefix}" "$py"
''; '';
@ -49,5 +53,6 @@ stdenv.mkDerivation rec {
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;
maintainers = with maintainers; [ infinisil ]; maintainers = with maintainers; [ infinisil ];
platforms = platforms.unix; platforms = platforms.unix;
mainProgram = "plistutil";
}; };
} }