From 4adf952f0363ef41d992eb5bad308da76ec44a5b Mon Sep 17 00:00:00 2001 From: Lprndn Date: Thu, 24 Jan 2019 13:45:03 +0100 Subject: [PATCH] gnu: Add aloadimage. * gnu/packages/arcan.scm (aloadimage): New variable. --- gnu/packages/arcan.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/arcan.scm b/gnu/packages/arcan.scm index 45f6329e5..3589ca55b 100644 --- a/gnu/packages/arcan.scm +++ b/gnu/packages/arcan.scm @@ -276,3 +276,32 @@ all the way to full-blown desktop environments") (synopsis "Clipboard manager for Arcan") (description "Clipboard manager for Arcan") (license license:bsd-3))) + +(define-public aloadimage + (package + (name "aloadimage") + (version (package-version arcan)) + (source (package-source arcan)) + (build-system cmake-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("arcan" ,arcan) + ("libseccomp" ,libseccomp))) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'configure 'chdir + (lambda _ + (chdir "src/tools/aloadimage") + #t)) + (add-after 'unpack 'fix-cmake-find-shmif + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/platform/cmake/modules/Findarcan_shmif.cmake" + (("/usr/local") (string-append (assoc-ref inputs "arcan") ""))) + #t))))) + (home-page "https://arcan-fe.com") + (synopsis "Image viewer for Arcan") + (description "Image viewer for Arcan") + (license license:bsd-3))) -- 2.19.2