571c71e6f7
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.
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, libexif
|
|
, popt
|
|
, libintl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "exif";
|
|
version = "0.6.22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libexif";
|
|
repo = pname;
|
|
rev = "${pname}-${builtins.replaceStrings ["."] ["_"] version}-release";
|
|
sha256 = "1xlb1gdwxm3rmw7vlrynhvjp9dkwmvw23mxisdbdmma7ah2nda3i";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "CVE-2021-27815.part-1.patch";
|
|
url = "https://github.com/libexif/exif/commit/f6334d9d32437ef13dc902f0a88a2be0063d9d1c.patch";
|
|
sha256 = "0mfx7l8w3w1c2mn5h5d6s7gdfyd91wnml8v0f19v5sdn70hx5aa4";
|
|
})
|
|
(fetchpatch {
|
|
name = "CVE-2021-27815.part-2.patch";
|
|
url = "https://github.com/libexif/exif/commit/eb84b0e3c5f2a86013b6fcfb800d187896a648fa.patch";
|
|
sha256 = "11lyvy20maisiyhxgxvm85v5l5ba7p0bpd4m0g4ryli32mrwwy0l";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ libexif popt libintl ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://libexif.github.io";
|
|
description = "Utility to read and manipulate EXIF data in digital photographs";
|
|
platforms = platforms.unix;
|
|
license = licenses.lgpl21Plus;
|
|
mainProgram = "exif";
|
|
};
|
|
}
|