summary refs log tree commit diff
path: root/pkgs/tools/security/crackxls/default.nix
blob: 04b7b5695b5511e6f38856a6d7cc0c77ff34f91b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchgit, pkgconfig, autoconf, automake, openssl, libgsf, gmp }:

stdenv.mkDerivation rec {

  pname = "crackxls";
  version = "0.4";

  src = fetchgit {
    url = https://github.com/GavinSmith0123/crackxls2003.git;
    rev = "refs/tags/v${version}";
    sha256 = "0q5jl7hcds3f0rhly3iy4fhhbyh9cdrfaw7zdrazzf1wswwhyssz";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ autoconf automake openssl libgsf gmp ];

  installPhase =
  ''
    mkdir -p $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;
  };
}