mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
libappimage: init at 1.0.4-5
Not the same thing as AppImageKit, but a continuation (?)
This commit is contained in:
parent
5dee2fe57e
commit
ff303455f3
87
pkgs/by-name/li/libappimage/package.nix
Normal file
87
pkgs/by-name/li/libappimage/package.nix
Normal file
@ -0,0 +1,87 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
autoconf,
|
||||
automake,
|
||||
libtool,
|
||||
pkg-config,
|
||||
boost,
|
||||
cairo,
|
||||
fuse,
|
||||
glib,
|
||||
libarchive,
|
||||
librsvg,
|
||||
squashfuse,
|
||||
xdg-utils-cxx,
|
||||
zlib,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libappimage";
|
||||
version = "1.0.4-5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AppImageCommunity";
|
||||
repo = "libappimage";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-V9Ilo0zFo9Urke+jCA4CSQB5tpzLC/S5jmon+bA+TEU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with GCC 13
|
||||
# FIXME: remove in next release
|
||||
(fetchpatch {
|
||||
url = "https://github.com/AppImageCommunity/libappimage/commit/1e0515b23b90588ce406669134feca56ddcbbe43.patch";
|
||||
hash = "sha256-WIMvXNqC1stgPiBTRpXHWq3edIRnQomtRSW2qO52TRo=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace cmake/libappimage.pc.in \
|
||||
--replace 'libdir=''${prefix}/@CMAKE_INSTALL_LIBDIR@' 'libdir=@CMAKE_INSTALL_FULL_LIBDIR@' \
|
||||
--replace 'includedir=''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@' 'includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@'
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_SYSTEM_BOOST=1"
|
||||
"-DUSE_SYSTEM_LIBARCHIVE=1"
|
||||
"-DUSE_SYSTEM_SQUASHFUSE=1"
|
||||
"-DUSE_SYSTEM_XDGUTILS=1"
|
||||
"-DUSE_SYSTEM_XZ=1"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
fuse
|
||||
libarchive
|
||||
squashfuse
|
||||
xdg-utils-cxx
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cairo
|
||||
glib
|
||||
librsvg
|
||||
zlib
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implements functionality for dealing with AppImage files";
|
||||
homepage = "https://github.com/AppImageCommunity/libappimage/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ k900 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user