From 10acbd67164672d4334b7d5cb162157e9e9468bf Mon Sep 17 00:00:00 2001 From: Emil Rangden Date: Mon, 1 Jun 2015 16:15:19 +0200 Subject: [PATCH 1/2] new package: crackxls --- pkgs/tools/security/crackxls/default.nix | 28 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/security/crackxls/default.nix diff --git a/pkgs/tools/security/crackxls/default.nix b/pkgs/tools/security/crackxls/default.nix new file mode 100644 index 000000000000..ba2bee2ffc2f --- /dev/null +++ b/pkgs/tools/security/crackxls/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchgit, autoconf, automake, openssl, libgsf }: + +stdenv.mkDerivation rec { + + name = "crackxls-${version}"; + version = "v0.4"; + + src = fetchgit { + url = https://github.com/GavinSmith0123/crackxls2003.git; + rev = "refs/tags/${version}"; + sha256 = "0q5jl7hcds3f0rhly3iy4fhhbyh9cdrfaw7zdrazzf1wswwhyssz"; + }; + + buildInputs = [ openssl libgsf automake autoconf ]; + + 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.none; + license = licenses.gpl3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d642c4188c74..73f2c3100e0f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1125,6 +1125,8 @@ let cpio = callPackage ../tools/archivers/cpio { }; + crackxls = callPackage ../tools/security/crackxls { }; + cromfs = callPackage ../tools/archivers/cromfs { }; cron = callPackage ../tools/system/cron { }; From ee8ac51986949522a51418b5ce650aaf2fe82da0 Mon Sep 17 00:00:00 2001 From: Emil Rangden Date: Mon, 1 Jun 2015 16:59:09 +0200 Subject: [PATCH 2/2] add linux to platforms --- pkgs/tools/security/crackxls/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/security/crackxls/default.nix b/pkgs/tools/security/crackxls/default.nix index ba2bee2ffc2f..c593650dbd45 100644 --- a/pkgs/tools/security/crackxls/default.nix +++ b/pkgs/tools/security/crackxls/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { 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.none; + platforms = platforms.linux; license = licenses.gpl3; }; }