nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+8 -7
+8 -7
pkgs/tools/text/sgml/jade/default.nix
··· 1 - { stdenv, fetchurl, pkgs, gcc, gzip, gnum4 }: 1 + { stdenv, fetchurl, pkgs, gnum4 }: 2 2 3 - stdenv.mkDerivation (rec { 4 - name = "jade"; 3 + stdenv.mkDerivation rec { 4 + name = "jade-${version}-${debpatch}"; 5 5 version = "1.2.1"; 6 6 debpatch = "47.3"; 7 7 8 8 src = fetchurl { 9 - url = "ftp://ftp.jclark.com/pub/${name}/${name}-${version}.tar.gz"; 9 + url = "ftp://ftp.jclark.com/pub/jade/jade-${version}.tar.gz"; 10 10 sha256 = "84e2f8a2a87aab44f86a46b71405d4f919b219e4c73e03a83ab6c746a674b187"; 11 11 }; 12 12 ··· 17 17 18 18 patches = [ patchsrc ]; 19 19 20 - buildInputs = [ gcc gzip gnum4 ]; 20 + buildInputs = [ gnum4 ]; 21 21 22 22 NIX_CFLAGS_COMPILE = [ "-Wno-deprecated" ]; 23 23 24 24 preInstall = '' 25 25 install -d -m755 "$out"/lib 26 26 ''; 27 - 27 + 28 28 postInstall = '' 29 29 mv "$out/bin/sx" "$out/bin/sgml2xml" 30 30 ''; ··· 33 33 description = "James Clark's DSSSL Engine"; 34 34 license = "custom"; 35 35 homepage = http://www.jclark.com/jade/; 36 + platforms = with stdenv.lib.platforms; linux; 36 37 maintainers = with stdenv.lib.maintainers; [ e-user ]; 37 38 }; 38 - }) 39 + }