crackxls: 0.4 -> 1.0

PhiliPdB 0ee9fa8c fb672a76

+7 -21
+7 -21
pkgs/by-name/cr/crackxls/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchFromGitHub, 5 - fetchpatch, 6 5 pkg-config, 7 6 autoconf, 8 7 automake, ··· 12 11 }: 13 12 14 13 stdenv.mkDerivation rec { 15 - 16 14 pname = "crackxls"; 17 - version = "0.4"; 15 + version = "1.0"; 18 16 19 17 src = fetchFromGitHub { 20 18 owner = "GavinSmith0123"; 21 19 repo = "crackxls2003"; 22 - rev = "v${version}"; 23 - sha256 = "0q5jl7hcds3f0rhly3iy4fhhbyh9cdrfaw7zdrazzf1wswwhyssz"; 20 + tag = "v${version}"; 21 + sha256 = "sha256-CJFC4iKHHpSRQBdotmum7NjpPNUjbB6cSCs5HMXnjO8="; 24 22 }; 25 23 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 24 nativeBuildInputs = [ 37 25 pkg-config 38 26 autoconf 39 27 automake 40 28 ]; 29 + 41 30 buildInputs = [ 42 31 openssl 43 32 libgsf 44 33 gmp 45 34 ]; 46 35 47 - # Avoid "-O5 -march=native" 48 - makeFlags = [ "OPTIM_FLAGS=" ]; 49 - 50 36 installPhase = '' 51 37 mkdir -p $out/bin 52 38 cp crackxls2003 $out/bin/ 53 39 ''; 54 40 55 - meta = with lib; { 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 - platforms = platforms.linux; 60 - license = licenses.gpl3; 45 + platforms = lib.platforms.linux; 46 + license = lib.licenses.gpl3; 61 47 }; 62 48 }