libgourou: init at 0.8.1
This commit is contained in:
parent
958836a059
commit
4e637df751
48
pkgs/development/libraries/libgourou/default.nix
Normal file
48
pkgs/development/libraries/libgourou/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ lib, stdenv, fetchzip, pugixml, updfparser, curl, openssl, libzip
|
||||
, installShellFiles }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libgourou";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://indefero.soutade.fr/p/${name}/source/download/v${version}/";
|
||||
sha256 = "sha256-X56K4z1+k62Q9pxnN8kx35oc7+uJJN/o/tpnKx1FjwE=";
|
||||
extension = "zip";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs scripts/setup.sh
|
||||
'';
|
||||
|
||||
postConfigure = ''
|
||||
mkdir lib
|
||||
ln -s ${updfparser}/lib lib/updfparser
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
buildInputs = [ pugixml updfparser curl openssl libzip ];
|
||||
|
||||
makeFlags = [ "BUILD_STATIC=1" "BUILD_SHARED=1" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dt $out/include include/libgourou*.h
|
||||
install -Dt $out/lib libgourou.so
|
||||
install -Dt $out/lib libgourou.so.${version}
|
||||
install -Dt $out/lib libgourou.a
|
||||
install -Dt $out/bin utils/acsmdownloader
|
||||
install -Dt $out/bin utils/adept_{activate,loan_mgt,remove}
|
||||
installManPage utils/man/*.1
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implementation of Adobe's ADEPT protocol for ePub/PDF DRM";
|
||||
homepage = "https://indefero.soutade.fr/p/libgourou";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ autumnal ];
|
||||
platforms = platforms.all;
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
|
@ -21347,6 +21347,8 @@ with pkgs;
|
|||
|
||||
libgnurl = callPackage ../development/libraries/libgnurl { };
|
||||
|
||||
libgourou = callPackage ../development/libraries/libgourou { };
|
||||
|
||||
libgringotts = callPackage ../development/libraries/libgringotts { };
|
||||
|
||||
libgrss = callPackage ../development/libraries/libgrss {
|
||||
|
|
Loading…
Reference in a new issue