presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / li / libappimage / package.nix
blob8d2a1013aff806a8ad30caa4457e608699dd7294
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7   autoconf,
8   automake,
9   libtool,
10   pkg-config,
11   boost,
12   cairo,
13   fuse,
14   glib,
15   libarchive,
16   librsvg,
17   squashfuse,
18   xdg-utils-cxx,
19   zlib,
21 stdenv.mkDerivation rec {
22   pname = "libappimage";
23   version = "1.0.4-5";
25   src = fetchFromGitHub {
26     owner = "AppImageCommunity";
27     repo = "libappimage";
28     rev = "v${version}";
29     hash = "sha256-V9Ilo0zFo9Urke+jCA4CSQB5tpzLC/S5jmon+bA+TEU=";
30   };
32   patches = [
33     # Fix build with GCC 13
34     # FIXME: remove in next release
35     (fetchpatch {
36       url = "https://github.com/AppImageCommunity/libappimage/commit/1e0515b23b90588ce406669134feca56ddcbbe43.patch";
37       hash = "sha256-WIMvXNqC1stgPiBTRpXHWq3edIRnQomtRSW2qO52TRo=";
38     })
39   ];
41   postPatch = ''
42     substituteInPlace cmake/libappimage.pc.in \
43       --replace 'libdir=''${prefix}/@CMAKE_INSTALL_LIBDIR@' 'libdir=@CMAKE_INSTALL_FULL_LIBDIR@' \
44       --replace 'includedir=''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@' 'includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@'
45   '';
47   cmakeFlags = [
48     "-DUSE_SYSTEM_BOOST=1"
49     "-DUSE_SYSTEM_LIBARCHIVE=1"
50     "-DUSE_SYSTEM_SQUASHFUSE=1"
51     "-DUSE_SYSTEM_XDGUTILS=1"
52     "-DUSE_SYSTEM_XZ=1"
53   ];
55   nativeBuildInputs = [
56     cmake
57     autoconf
58     automake
59     libtool
60     pkg-config
61   ];
63   buildInputs = [
64     boost
65     fuse
66     libarchive
67     squashfuse
68     xdg-utils-cxx
69   ];
71   propagatedBuildInputs = [
72     cairo
73     glib
74     librsvg
75     zlib
76   ];
78   strictDeps = true;
80   meta = with lib; {
81     description = "Implements functionality for dealing with AppImage files";
82     homepage = "https://github.com/AppImageCommunity/libappimage/";
83     license = licenses.mit;
84     maintainers = with maintainers; [ k900 ];
85     platforms = platforms.linux;
86   };