tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
crackxls: 0.4 -> 1.0
PhiliPdB
9 months ago
0ee9fa8c
fb672a76
+7
-21
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
cr
crackxls
package.nix
+7
-21
pkgs/by-name/cr/crackxls/package.nix
···
2
2
lib,
3
3
stdenv,
4
4
fetchFromGitHub,
5
5
-
fetchpatch,
6
5
pkg-config,
7
6
autoconf,
8
7
automake,
···
12
11
}:
13
12
14
13
stdenv.mkDerivation rec {
15
15
-
16
14
pname = "crackxls";
17
17
-
version = "0.4";
15
15
+
version = "1.0";
18
16
19
17
src = fetchFromGitHub {
20
18
owner = "GavinSmith0123";
21
19
repo = "crackxls2003";
22
22
-
rev = "v${version}";
23
23
-
sha256 = "0q5jl7hcds3f0rhly3iy4fhhbyh9cdrfaw7zdrazzf1wswwhyssz";
20
20
+
tag = "v${version}";
21
21
+
sha256 = "sha256-CJFC4iKHHpSRQBdotmum7NjpPNUjbB6cSCs5HMXnjO8=";
24
22
};
25
23
26
26
-
patches = [
27
27
-
# Pull patch pending upstream inclusion for -fno-common support:
28
28
-
# https://github.com/GavinSmith0123/crackxls2003/pull/3
29
29
-
(fetchpatch {
30
30
-
name = "fno-common.patch";
31
31
-
url = "https://github.com/GavinSmith0123/crackxls2003/commit/613d6c1844f76c7b67671aaa265375fed56c2a56.patch";
32
32
-
sha256 = "1pk67x67d9wji576mc57z5bzqlf9ygvn9m1z47w12mad7qmj9h1n";
33
33
-
})
34
34
-
];
35
35
-
36
24
nativeBuildInputs = [
37
25
pkg-config
38
26
autoconf
39
27
automake
40
28
];
29
29
+
41
30
buildInputs = [
42
31
openssl
43
32
libgsf
44
33
gmp
45
34
];
46
35
47
47
-
# Avoid "-O5 -march=native"
48
48
-
makeFlags = [ "OPTIM_FLAGS=" ];
49
49
-
50
36
installPhase = ''
51
37
mkdir -p $out/bin
52
38
cp crackxls2003 $out/bin/
53
39
'';
54
40
55
55
-
meta = with lib; {
41
41
+
meta = {
56
42
homepage = "https://github.com/GavinSmith0123/crackxls2003/";
57
43
description = "Used to break the encryption on old Microsoft Excel and Microsoft Word files";
58
44
mainProgram = "crackxls2003";
59
59
-
platforms = platforms.linux;
60
60
-
license = licenses.gpl3;
45
45
+
platforms = lib.platforms.linux;
46
46
+
license = lib.licenses.gpl3;
61
47
};
62
48
}