mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
3c47a9980c
patch is from @dezgeg and is contained in #8530
35 lines
885 B
Nix
35 lines
885 B
Nix
{ stdenv, fetchgit, pkgconfig, autoconf, automake, openssl, libgsf, gmp }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "crackxls-${version}";
|
|
version = "0.4";
|
|
|
|
src = fetchgit {
|
|
url = https://github.com/GavinSmith0123/crackxls2003.git;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "0q5jl7hcds3f0rhly3iy4fhhbyh9cdrfaw7zdrazzf1wswwhyssz";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig autoconf automake openssl libgsf gmp ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace Makefile.in \
|
|
--replace '-march=native' "" \
|
|
--replace '-mtune=native' ""
|
|
'';
|
|
|
|
installPhase =
|
|
''
|
|
mkdir $out/bin
|
|
cp crackxls2003 $out/bin/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/GavinSmith0123/crackxls2003/;
|
|
description = "Used to break the encryption on old Microsoft Excel and Microsoft Word files";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|