Files
nixpkgs/pkgs/by-name/li/libgourou/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitea,
pugixml,
updfparser,
curl,
openssl,
libzip,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libgourou";
version = "0.8.7";
src = fetchFromGitea {
domain = "forge.soutade.fr";
owner = "soutade";
repo = "libgourou";
tag = "v${finalAttrs.version}";
hash = "sha256-Tkft/pe3lH07pmyVibTEutIIvconUWDH1ZVN3qV4sSY=";
};
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.${finalAttrs.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://forge.soutade.fr/soutade/libgourou";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ autumnal ];
platforms = platforms.all;
broken = stdenv.hostPlatform.isDarwin;
};
})