2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchurl, gnum4 }:
|
2016-04-14 20:18:09 +02:00
|
|
|
|
2017-02-10 18:09:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jade-${version}-${debpatch}";
|
2016-04-14 20:18:09 +02:00
|
|
|
version = "1.2.1";
|
|
|
|
debpatch = "47.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-02-10 18:09:08 +01:00
|
|
|
url = "ftp://ftp.jclark.com/pub/jade/jade-${version}.tar.gz";
|
2016-04-14 20:18:09 +02:00
|
|
|
sha256 = "84e2f8a2a87aab44f86a46b71405d4f919b219e4c73e03a83ab6c746a674b187";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchsrc = fetchurl {
|
|
|
|
url = "http://ftp.debian.org/debian/pool/main/j/jade/jade_${version}-${debpatch}.diff.gz";
|
|
|
|
sha256 = "8e94486898e3503308805f856a65ba5b499a6f21994151270aa743de48305464";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ patchsrc ];
|
|
|
|
|
2017-02-10 18:09:08 +01:00
|
|
|
buildInputs = [ gnum4 ];
|
2016-04-14 20:18:09 +02:00
|
|
|
|
2019-10-30 03:23:29 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated";
|
2016-04-14 20:18:09 +02:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
install -d -m755 "$out"/lib
|
|
|
|
'';
|
2017-02-10 18:09:08 +01:00
|
|
|
|
2016-04-14 20:18:09 +02:00
|
|
|
postInstall = ''
|
|
|
|
mv "$out/bin/sx" "$out/bin/sgml2xml"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "James Clark's DSSSL Engine";
|
|
|
|
license = "custom";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.jclark.com/jade/";
|
2021-01-15 10:19:50 +01:00
|
|
|
platforms = with lib.platforms; linux;
|
|
|
|
maintainers = with lib.maintainers; [ e-user ];
|
2016-04-14 20:18:09 +02:00
|
|
|
};
|
2017-02-10 18:09:08 +01:00
|
|
|
}
|