depot/third_party/nixpkgs/pkgs/applications/graphics/gpicview/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
926 B
Nix

{ lib, stdenv, fetchurl, intltool, pkg-config, gtk2, fetchpatch }:
stdenv.mkDerivation rec {
pname = "gpicview";
version = "0.2.4";
src = fetchurl {
url = "mirror://sourceforge/lxde/gpicview-${version}.tar.gz";
sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
};
patches = [
(fetchpatch {
url = "https://raw.githubusercontent.com/nonas/debian-clang/master/buildlogs/gpicview/gpicview-0.2.4/debian/patches/clang_FTBFS_Wreturn-type.patch";
sha256 = "02dm966bplnv10knpdx7rlpjipk884156ggd9ij05zhza0jl8xcs";
})
];
nativeBuildInputs = [ pkg-config intltool ];
buildInputs = [ gtk2 ];
meta = with lib; {
description = "Simple and fast image viewer for X";
homepage = "https://lxde.sourceforge.net/gpicview/";
license = licenses.gpl2;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
mainProgram = "gpicview";
};
}