about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libplist
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libplist')
-rw-r--r--nixpkgs/pkgs/development/libraries/libplist/default.nix21
1 files changed, 13 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libplist/default.nix b/nixpkgs/pkgs/development/libraries/libplist/default.nix
index 23b1fabce78b..afd28996265c 100644
--- a/nixpkgs/pkgs/development/libraries/libplist/default.nix
+++ b/nixpkgs/pkgs/development/libraries/libplist/default.nix
@@ -10,21 +10,17 @@
 
 stdenv.mkDerivation rec {
   pname = "libplist";
-  version = "2.2.0+date=2022-04-05";
+  version = "2.3.0";
 
   outputs = [ "bin" "dev" "out" ] ++ lib.optional enablePython "py";
 
   src = fetchFromGitHub {
     owner = "libimobiledevice";
     repo = pname;
-    rev = "db93bae96d64140230ad050061632531644c46ad";
-    hash = "sha256-8e/PFDhsyrOgmI3vLT1YhcROmbJgArDAJSe8Z2bZafo=";
+    rev = version;
+    hash = "sha256-fZfDSWVRg73dN+WF6LbgRSj8vtyeKeyjC8pWXFxUmBg=";
   };
 
-  postPatch = ''
-    echo '${version}' > .tarball-version
-  '';
-
   nativeBuildInputs = [
     autoreconfHook
     pkg-config
@@ -35,10 +31,18 @@ stdenv.mkDerivation rec {
     python3.pkgs.cython
   ];
 
-  configureFlags = lib.optionals (!enablePython) [
+  preAutoreconf = ''
+    export RELEASE_VERSION=${version}
+  '';
+
+  configureFlags = [
+    "--enable-debug"
+  ] ++ lib.optionals (!enablePython) [
     "--without-cython"
   ];
 
+  doCheck = true;
+
   postFixup = lib.optionalString enablePython ''
     moveToOutput "lib/${python3.libPrefix}" "$py"
   '';
@@ -49,5 +53,6 @@ stdenv.mkDerivation rec {
     license = licenses.lgpl21Plus;
     maintainers = with maintainers; [ infinisil ];
     platforms = platforms.unix;
+    mainProgram = "plistutil";
   };
 }