aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/model/derivation.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix-data-service/model/derivation.scm')
-rw-r--r--guix-data-service/model/derivation.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/guix-data-service/model/derivation.scm b/guix-data-service/model/derivation.scm
index 033168b..de675d5 100644
--- a/guix-data-service/model/derivation.scm
+++ b/guix-data-service/model/derivation.scm
@@ -34,6 +34,7 @@
#:use-module (guix-data-service database)
#:use-module (guix-data-service model utils)
#:export (valid-systems
+ valid-targets
count-derivations
select-derivation-by-file-name
select-derivation-by-file-name-hash
@@ -66,6 +67,14 @@
"mips64el-linux"
"x86_64-linux"))
+(define (valid-targets conn)
+ '("" ;; no target
+ "arm-linux-gnueabihf"
+ "aarch64-linux-gnu"
+ "powerpc-linux-gnu"
+ "riscv64-linux-gnu"
+ "i586-pc-gnu"))
+
(define (count-derivations conn)
(first
(exec-query