bug#52284: Partially unifying packages and inferior packages

2021-12-04 Thread Maxime Devos
X-Debbugs-CC: guix-de...@gnu.org Hi guix, There have been some bug reports with as root cause that inferior packages aren't packages. I think that root cause is a bug. To resolve this, there was some talk on using GOOP classes, or define-gexp-compiler-style polymorphism for package-native-inpu

bug#52284: Partially unifying packages and inferior packages

2021-12-06 Thread Ludovic Courtès
Hi, Maxime Devos skribis: > (define (inferior-package->package inf) > ;; TODO: somehow make sure no inheritance happens on this package > (package > (name (inferior-package-name inf)) > (version (inferior-package-version inf)) > (replacement (and=> (inferior-package-replacement i