diff --git a/pkgs/applications/misc/cataract/build.nix b/pkgs/applications/misc/cataract/build.nix new file mode 100644 index 000000000000..587a20b2704e --- /dev/null +++ b/pkgs/applications/misc/cataract/build.nix @@ -0,0 +1,38 @@ +{ stdenv +, fetchgit +, autoreconfHook +, glib +, pkgconfig +, libxml2 +, exiv2 +, imagemagick +, version +, sha256 +, rev }: + +stdenv.mkDerivation rec { + inherit version; + name = "cataract-${version}"; + + src = fetchgit { + url = "git://git.bzatek.net/cataract"; + inherit sha256 rev; + }; + + buildInputs = [ autoreconfHook glib pkgconfig libxml2 exiv2 imagemagick ]; + + installPhase = '' + mkdir $out/{bin,share} -p + cp src/cgg{,-dirgen} $out/bin/ + ''; + + meta = { + homepage = "http://cgg.bzatek.net/"; + description = "a simple static web photo gallery, designed to be clean and easily usable"; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.matthiasbeyer ]; + platforms = with stdenv.lib.platforms; linux ++ darwin; + }; +} + + diff --git a/pkgs/applications/misc/cataract/default.nix b/pkgs/applications/misc/cataract/default.nix new file mode 100644 index 000000000000..83292a76c5dd --- /dev/null +++ b/pkgs/applications/misc/cataract/default.nix @@ -0,0 +1,17 @@ +{ callPackage +, stdenv +, fetchgit +, autoconf +, automake +, glib +, pkgconfig +, libxml2 +, exiv2 +, imagemagick }: + +callPackage ./build.nix { + version = "1.1.0"; + rev = "675e647dc8ae918d29f520a29be9201ae85a94dd"; + sha256 = "13b9rvcy9k2ay8w36j28kc7f4lnxp4jc0494ck3xsmwgqsawmzdj"; +} + diff --git a/pkgs/applications/misc/cataract/unstable.nix b/pkgs/applications/misc/cataract/unstable.nix new file mode 100644 index 000000000000..8d8b063e48b3 --- /dev/null +++ b/pkgs/applications/misc/cataract/unstable.nix @@ -0,0 +1,17 @@ +{ callPackage +, stdenv +, fetchgit +, autoconf +, automake +, glib +, pkgconfig +, libxml2 +, exiv2 +, imagemagick }: + +callPackage ./build.nix { + version = "unstable-2016-10-18"; + rev = "db3d992febbe703931840e9bdad95c43081694a5"; + sha256 = "04f85piy675lq36w1mw6mw66n8911mmn4ifj8h9x47z8z806h3rf"; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e8bb1b2262e6..d4c71c6c8fac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -696,6 +696,9 @@ with pkgs; capstone = callPackage ../development/libraries/capstone { }; + cataract = callPackage ../applications/misc/cataract { }; + cataract-unstable = callPackage ../applications/misc/cataract/unstable.nix { }; + catch = callPackage ../development/libraries/catch { }; catdoc = callPackage ../tools/text/catdoc { };