gnu: vpn-slice: Fix store path substitutions.

* gnu/packages/vpn.scm (vpn-slice): Fix store path substitutions.

Change-Id: I4a07e758334bdcb5fc05c30bbcf4b851f95ef5d7
Signed-off-by: Jelle Licht <jlicht@fsfe.org>
This commit is contained in:
Allan Adair 2025-10-06 16:18:28 +02:00 committed by Jelle Licht
parent 54ff89a697
commit 79086bb15f
No known key found for this signature in database
GPG key ID: DA4597F947B41025

View file

@ -23,7 +23,7 @@
;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop>
;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
;;; Copyright © 2022, 2025 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2024 Allan Adair <allan@adair.no>
;;; Copyright © 2024, 2025 Allan Adair <allan@adair.no>
;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
@ -1309,16 +1309,18 @@ L2TP allows you to tunnel PPP over UDP.")
(build-system pyproject-build-system)
(arguments
(list
#:tests? #f ; No tests.
#:tests? #f ;No tests.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-FHS-file-names
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "vpn_slice/linux.py"
(("/sbin/iptables")
(search-input-file inputs "/sbin/iptables"))
(("/sbin/ip")
(search-input-file inputs "/sbin/ip"))))))))
(("'/sbin/iptables'")
(string-append
"'" (search-input-file inputs "/sbin/iptables") "'"))
(("'/sbin/ip'")
(string-append
"'" (search-input-file inputs "/sbin/ip") "'"))))))))
(native-inputs (list python-setuptools python-wheel))
(inputs (list python-dnspython python-setproctitle iproute iptables))
(home-page "https://github.com/dlenski/vpn-slice")