mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
6c60d3d38a
Without the change build fails on -fno-common toolchains like upstream gcc-10 as: $ nix build -L --impure --expr 'with import ./. {}; gqview.overrideAttrs (oa: { NIX_CFLAGS_COMPILE = (["-fno-common"] ++ [oa.NIX_CFLAGS_COMPILE or ""]); })' ... ld: pan-view.o:/build/gqview-2.1.5/src/bar_exif.h:27: multiple definition of `bar_exif_key_list'; bar_exif.o:/build/gqview-2.1.5/src/bar_exif.h:27: first defined here
29 lines
669 B
Nix
29 lines
669 B
Nix
{ lib, stdenv, fetchurl, pkg-config, gtk2, libpng }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gqview";
|
|
version = "2.1.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gqview/gqview-${version}.tar.gz";
|
|
sha256 = "0ilm5s7ps9kg4f5hzgjhg0xhn6zg0v9i7jnd67zrx9h7wsaa9zhj";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ gtk2 libpng ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
NIX_LDFLAGS = "-lm";
|
|
|
|
meta = with lib; {
|
|
description = "A fast image viewer";
|
|
homepage = "http://gqview.sourceforge.net";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|