nixpkgs/pkgs/by-name/up/updfparser/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

32 lines
855 B
Nix

{ lib, stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "updfparser";
version = "unstable-2023-08-08";
rev = "c5ce75b9eea8ebb2746b13eeb0f335813c615115";
src = fetchzip {
url = "https://indefero.soutade.fr/p/updfparser/source/download/${rev}/";
hash = "sha256-RT7mvu43Izp0rHhKq4wR4kt0TDfzHvB2NGMR+fxO5UM=";
extension = "zip";
};
makeFlags = [ "BUILD_STATIC=1" "BUILD_SHARED=1" ];
installPhase = ''
runHook preInstall
install -Dt $out/include include/*.h
install -Dt $out/lib libupdfparser.so
install -Dt $out/lib libupdfparser.a
runHook postInstall
'';
meta = with lib; {
description = "Very simple PDF parser";
homepage = "https://indefero.soutade.fr/p/updfparser";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ autumnal ];
platforms = platforms.all;
};
}