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