diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2017-02-10 19:09:08 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2017-02-10 20:12:00 +0200 |
commit | 6a48087bc3b2277814504a274c6da0ffd8bb7d44 (patch) | |
tree | b22d193fb48b79f902f429c68262c849bfb2b249 /pkgs/tools/text/sgml | |
parent | 8c6f81145efdb3acc048bfb38f8c899036e1b18f (diff) |
jade: Cleanup a bit
- Include version number the name so Nix knows about it.
- gcc and gzip are implicitly included, no need to add them here.
- Add meta.platforms
Diffstat (limited to 'pkgs/tools/text/sgml')
-rw-r--r-- | pkgs/tools/text/sgml/jade/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/tools/text/sgml/jade/default.nix b/pkgs/tools/text/sgml/jade/default.nix index ffbf9784f80f..e87a8bc02750 100644 --- a/pkgs/tools/text/sgml/jade/default.nix +++ b/pkgs/tools/text/sgml/jade/default.nix @@ -1,12 +1,12 @@ -{ stdenv, fetchurl, pkgs, gcc, gzip, gnum4 }: +{ stdenv, fetchurl, pkgs, gnum4 }: -stdenv.mkDerivation (rec { - name = "jade"; +stdenv.mkDerivation rec { + name = "jade-${version}-${debpatch}"; version = "1.2.1"; debpatch = "47.3"; src = fetchurl { - url = "ftp://ftp.jclark.com/pub/${name}/${name}-${version}.tar.gz"; + url = "ftp://ftp.jclark.com/pub/jade/jade-${version}.tar.gz"; sha256 = "84e2f8a2a87aab44f86a46b71405d4f919b219e4c73e03a83ab6c746a674b187"; }; @@ -17,14 +17,14 @@ stdenv.mkDerivation (rec { patches = [ patchsrc ]; - buildInputs = [ gcc gzip gnum4 ]; + buildInputs = [ gnum4 ]; NIX_CFLAGS_COMPILE = [ "-Wno-deprecated" ]; preInstall = '' install -d -m755 "$out"/lib ''; - + postInstall = '' mv "$out/bin/sx" "$out/bin/sgml2xml" ''; @@ -33,6 +33,7 @@ stdenv.mkDerivation (rec { description = "James Clark's DSSSL Engine"; license = "custom"; homepage = http://www.jclark.com/jade/; + platforms = with stdenv.lib.platforms; linux; maintainers = with stdenv.lib.maintainers; [ e-user ]; }; -}) +} |