gnu: Use 'this-package' as a native input instead of 'self-native-input?'.

* gnu/packages/file.scm (file)[self-native-input?]: Remove.
[native-inputs]: New field.
* gnu/packages/guile.scm (guile-1.8)[self-native-input?]: Remove.
[native-inputs]: New field.
(guile-2.0)[self-native-input?]: Remove.
[native-inputs]: Add THIS-PACKAGE when (%current-target-system) is true.
* gnu/packages/ncurses.scm (ncurses)[self-native-input?]: Remove.
[native-inputs]: Add THIS-PACKAGE when (%current-target-system) is true.
* gnu/packages/python-xyz.scm (python-file)[self-native-input?]: Remove.
[native-inputs]: New field.
This commit is contained in:
Ludovic Courtès 2019-03-30 14:34:40 +01:00
parent 398747f8f1
commit 528ea990c3
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
4 changed files with 23 additions and 11 deletions

View file

@ -43,7 +43,9 @@
;; When cross-compiling, this package depends upon a native install of
;; itself.
(self-native-input? #t)
(native-inputs (if (%current-target-system)
`(("self" ,this-package))
'()))
(synopsis "File type guesser")
(description