1{ lib, stdenv, fetchurl, pkg-config, perl, perlPackages, pxlib }:
2
3stdenv.mkDerivation rec {
4 pname = "pxview";
5 version = "0.2.5";
6 src = fetchurl {
7 url = "mirror://sourceforge/pxlib/${pname}_${version}.orig.tar.gz";
8 sha256 = "1kpdqs6lvnyj02v9fbz1s427yqhgrxp7zw63rzfgiwd4iqp75139";
9 };
10
11 buildInputs = [ pxlib perl ] ++ (with perlPackages; [ libxml_perl ]);
12 nativeBuildInputs = [ pkg-config ];
13
14 configureFlags = [ "--with-pxlib=${pxlib.out}" ];
15
16 # https://sourceforge.net/p/pxlib/bugs/12/
17 LDFLAGS = "-lm";
18 hardeningDisable = [ "format" ];
19
20 meta = with lib; {
21 description = "Program to convert Paradox databases";
22 homepage = "https://pxlib.sourceforge.net/pxview/";
23 license = licenses.gpl2;
24 platforms = platforms.linux;
25 maintainers = [ maintainers.winpat ];
26 };
27}