File tree 2 files changed +4
-79
lines changed
2 files changed +4
-79
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
, fetchurl
3
3
, gnumake
4
4
, system
5
+ , _7zz
5
6
, ...
6
7
} :
7
8
8
- stdenv . mkDerivation rec {
9
- pname = "7zip" ;
10
- version = "23.01" ;
11
-
12
- src = fetchurl {
13
- url = "https://www.7-zip.org/a/7z2301-src.tar.xz" ;
14
- sha256 = "0x4zpzjfnn0ggjprz30fawdvb014icz9j14r9n1a3rb0fc072q1m" ;
15
- } ;
16
-
17
- patches = [ ./000-dangerous-links.patch ./001-werror.patch ] ;
18
-
19
- arch = {
20
- "x86_64-darwin" = "x64" ;
21
- "aarch64-darwin" = "arm64" ;
22
- } . ${ system } or ( throw "unknown system ${ system } " ) ;
23
-
24
- sourceRoot = "." ;
25
-
26
- nativeBuildInputs = [ gnumake ] ;
27
-
28
- #setupHook = ./setup-hook.sh;
29
-
30
- dontConfigure = true ;
31
-
32
- buildPhase = ''
33
- export MACOSX_DEPLOYMENT_TARGET=11.0
34
- cd CPP/7zip/Bundles/Alone2
35
- make -f ../../cmpl_mac_${ arch } .mak LOCAL_FLAGS_ST=-Wno-extra-semi-stmt
36
- '' ;
37
-
38
- installPhase = ''
39
- mkdir -p $out/bin
40
- cp b/m_${ arch } /7zz $out/bin
41
- '' ;
42
-
43
- }
44
-
45
-
46
-
9
+ _7zz . overrideAttrs ( prev : {
10
+ patches = prev . patches ++ [ ./000-dangerous-links.patch ] ;
11
+ } )
You can’t perform that action at this time.
0 commit comments