From 9766e70f7fea16642fbf53272d7775bedd846a48 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 29 Sep 2025 13:55:46 +0100 Subject: Initial commit --- manifest.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 manifest.scm (limited to 'manifest.scm') diff --git a/manifest.scm b/manifest.scm new file mode 100644 index 0000000..640ac50 --- /dev/null +++ b/manifest.scm @@ -0,0 +1,36 @@ +(use-modules ((gnu packages image-processing) #:select (cimg)) + ((gnu packages python) #:select (python)) + ((gnu packages python-xyz) #:select (python-click python-exif-read)) + (guix build-system gnu) + (guix download) + (guix gexp) + ((guix licenses) #:prefix license:) + (guix packages)) + +(define-public phash + (package + (name "phash") + (version "0.9.6") + (source (origin + (method url-fetch) + (uri (string-append "https://www.phash.org/releases/pHash-" + version ".tar.gz")) + (sha256 + (base32 + "0d9920q9m2lncj44j02xlhw5d0068sc10c0mn4glkhpr2jh5i0iw")))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags #~(list "--enable-audio-hash=no" + "--enable-video-hash=no"))) + (inputs + (list cimg)) + (home-page "https://www.phash.org/") + (synopsis "Perceptual hashing library") + (description "pHash is an open source software library released under the GPLv3 +license that implements several perceptual hashing algorithms, and +provides a C-like API to use those functions in your own programs. +pHash itself is written in C++.") + (license license:gpl3+))) + +(packages->manifest + (list phash python python-click python-exif-read)) -- cgit 1.4.1