From 27ae1740646553e61cb485e3d9276b8f85e56c7b Mon Sep 17 00:00:00 2001 From: pjotrp Date: Thu, 23 Feb 2017 15:23:15 +0000 Subject: shunit2: installs and runs --- gn/packages/shell.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gn/packages/shell.scm b/gn/packages/shell.scm index 185ac17..7b2656b 100644 --- a/gn/packages/shell.scm +++ b/gn/packages/shell.scm @@ -11,7 +11,7 @@ (let ((commit "60dd60bcd1573befe38465010263ab242e55811d")) (package (name "shunit2") - (version (string-append "2.1.7-" (string-take commit 7))) + (version (string-append "2.0.4-" (string-take commit 7))) (source (origin (method git-fetch) (uri (git-reference @@ -31,9 +31,14 @@ (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin"))) - (write (string-append "****************" bin)) - (copy-file "2.1/src/shunit2" (string-append bin "/shunit2")) + (bin (string-append out "/bin")) + (shunit2-exec (string-append bin "/shunit2")) + ) + (write (file-exists? "source/2.0/src/shell/shunit2")) + (write (format #t "build directory: ~s~%" (getcwd))) + (mkdir-p bin) + (copy-file "source/2.0/src/shell/shunit2" shunit2-exec) + (chmod shunit2-exec #o555) #t )))) )) -- cgit v1.2.3