lol
1{ stdenv, fetchurl }:
2
3let
4 version = "9.38";
5in
6stdenv.mkDerivation rec {
7 name = "p7zip-${version}";
8
9 src = fetchurl {
10 url = "mirror://sourceforge/p7zip/p7zip_${version}_src_all.tar.bz2";
11 sha256 = "0mxribb9a3lz3bifz6002hg7vyy8h9piinypian533hw8qvswfx7";
12 };
13
14 preConfigure = ''
15 makeFlagsArray=(DEST_HOME=$out)
16 buildFlags=all3
17 '' + stdenv.lib.optionalString stdenv.isDarwin ''
18 cp makefile.macosx_64bits makefile.machine
19 '';
20
21 enableParallelBuilding = true;
22
23 meta = {
24 homepage = http://p7zip.sourceforge.net/;
25 description = "A port of the 7-zip archiver";
26 # license = stdenv.lib.licenses.lgpl21Plus; + "unRAR restriction"
27 platforms = stdenv.lib.platforms.unix;
28 maintainers = [ stdenv.lib.maintainers.raskin ];
29 };
30}