Remove compatability with old guix derivation-inputs

This commit is contained in:
Christopher Baines 2025-03-09 13:20:08 +00:00
parent 59f1a04f4e
commit 61d49cedb3

View file

@ -1415,15 +1415,11 @@ VALUES ($1, $2);"
derivation-id
(append-map!
(match-lambda
(($ <derivation-input> derivation-or-path sub-derivations)
(let ((path
(match derivation-or-path
((? derivation? d)
;; The first field changed to a derivation (from the file
;; name) in 5cf4b26d52bcea382d98fb4becce89be9ee37b55
(derivation-file-name d))
((? string? s)
s))))
;; The first field changed to a derivation (from the file name)
;; in 5cf4b26d52bcea382d98fb4becce89be9ee37b55, so guard against
;; that in the match
(($ <derivation-input> (? derivation? d) sub-derivations)
(let ((path (derivation-file-name d)))
(map (lambda (sub-derivation)
(select-derivation-output-id conn
sub-derivation