Fetch the list of system values from the database
This removes the need to hardcode some values in the code.
This commit is contained in:
parent
b430c632b7
commit
6387f1bc67
5 changed files with 25 additions and 38 deletions
|
|
@ -34,8 +34,7 @@
|
|||
#:use-module (guix-data-service database)
|
||||
#:use-module (guix-data-service model utils)
|
||||
#:use-module (guix-data-service model system)
|
||||
#:export (valid-systems
|
||||
valid-targets
|
||||
#:export (valid-targets
|
||||
count-derivations
|
||||
select-derivation-by-file-name
|
||||
select-derivation-by-file-name-hash
|
||||
|
|
@ -61,16 +60,6 @@
|
|||
select-derivations-and-build-status
|
||||
derivation-file-names->derivation-ids))
|
||||
|
||||
(define (valid-systems conn)
|
||||
;; TODO, use the database, but make it quick!
|
||||
'("aarch64-linux"
|
||||
"armhf-linux"
|
||||
"i586-gnu"
|
||||
"i686-linux"
|
||||
"mips64el-linux"
|
||||
"powerpc64le-linux"
|
||||
"x86_64-linux"))
|
||||
|
||||
(define (valid-targets conn)
|
||||
'("arm-linux-gnueabihf"
|
||||
"aarch64-linux-gnu"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue