summary refs log tree commit diff
path: root/pkgs/tools/compression/xz/default.nix
blob: b6aa8e96013f8755c625aa50d000d7b61022433f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{stdenv, fetchurl, lib}:

stdenv.mkDerivation ({
  name = "xz-5.0.0";
  
  src = fetchurl {
    url = http://tukaani.org/xz/xz-5.0.0.tar.bz2;
    sha256 = "1n2nc00d83di0jl5d9qwpngkmlk3wqhs4w9q2ah680v9qijrxa27";
  };

  meta = {
    homepage = http://tukaani.org/xz/;
    description = "Successor of the LZMA Utils package";
    license = "GPL/LGPL";
    maintainers = [ lib.maintainers.sander ];
  };
}

//

(if stdenv.system == "x86_64-darwin"
 # Work around assembler misconfiguration as `x86'.  This appears to be fixed
 # by commit b9b5c54cd438b3ae47b44cc211b71f3bc53e35ef (Nov 22 12:00:30 2009 # +0200).
 then { configureFlags = "--enable-assembler=x86_64"; }
 else {}))