1 {lib, stdenv, fetchurl, indent}:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/libdwg/libdwg-${version}.tar.bz2";
9 sha256 = "0l8ks1x70mkna1q7mzy1fxplinz141bd24qhrm1zkdil74mcsryc";
12 nativeBuildInputs = [ indent ];
14 hardeningDisable = [ "format" ];
16 # remove forbidden references to $TMPDIR
17 preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
18 for f in "$out"/bin/*; do
20 patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f"
26 description = "Library reading dwg files";
27 homepage = "http://libdwg.sourceforge.net/en/";
28 license = lib.licenses.gpl3;
29 maintainers = [lib.maintainers.marcweber];
30 platforms = lib.platforms.linux;