mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
662a6b1ca6
use the new `stdenv.cc.is{GNU,Clang}` instead, which will always be defined.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{stdenv, fetchurl, boost, pkgconfig, cppunit, zlib}:
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
baseName="librevenge";
|
|
version="0.0.2";
|
|
name="${baseName}-${version}";
|
|
hash="03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn";
|
|
url="mirror://sourceforge/project/libwpd/librevenge/librevenge-0.0.2/librevenge-0.0.2.tar.xz";
|
|
sha256="03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn";
|
|
};
|
|
buildInputs = [
|
|
boost pkgconfig cppunit zlib
|
|
];
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit (s) name version;
|
|
inherit buildInputs;
|
|
src = fetchurl {
|
|
inherit (s) url sha256;
|
|
};
|
|
|
|
# Clang generates warnings in Boost's header files
|
|
# -Werror causes these warnings to be interpreted as errors
|
|
# Simplest solution: disable -Werror
|
|
configureFlags = if stdenv.cc.isClang
|
|
then [ "--disable-werror" ] else null;
|
|
|
|
meta = {
|
|
inherit (s) version;
|
|
description = ''A base library for writing document import filters'';
|
|
license = stdenv.lib.licenses.mpl20 ;
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|