gnu: sedsed: Symlink after wrapping.
authorTobias Geerinckx-Rice <me@tobias.gr>
Wed, 10 Jul 2019 12:32:58 +0000 (14:32 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Wed, 10 Jul 2019 15:39:28 +0000 (17:39 +0200)
Drop unused .sedsed-real symlink and avoid sedsed → sedsed.py
→ .sedsed.py-real exec chain.

* gnu/packages/admin.scm (sedsed)[arguments]: Move ‘symlink’ phase
after ‘wrap’.

gnu/packages/admin.scm

index 411be40..3a7014c 100644 (file)
@@ -2492,14 +2492,14 @@ in order to be able to find it.
                ;; Just one file to copy around
                (install-file "sedsed.py" bin)
                #t)))
-         (add-after 'install 'symlink
+         (add-after 'wrap 'symlink
            ;; Create 'sedsed' symlink to "sedsed.py".
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
                     (bin (string-append out "/bin"))
                     (sed (string-append bin "/sedsed"))
                     (sedpy (string-append bin "/sedsed.py")))
-               (symlink  sedpy sed)
+               (symlink sedpy sed)
                #t))))))
     (home-page "http://aurelio.net/projects/sedsed")
     (synopsis "Sed sed scripts")