diff options
author | Christopher Baines <mail@cbaines.net> | 2020-02-08 11:16:08 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-02-08 11:16:08 +0000 |
commit | f1989e8758b89b2750f7a546871c0721ab9f9839 (patch) | |
tree | a762d9a8be4ba668d8f823f410134b43303eab3c /guix-data-service/model | |
parent | 77beb5949511db7fc5236567b8b1d25d98f82bbb (diff) | |
download | data-service-f1989e8758b89b2750f7a546871c0721ab9f9839.tar data-service-f1989e8758b89b2750f7a546871c0721ab9f9839.tar.gz |
Rework cross derivations support
Stop using the system values as targets, and remove package derivation entries
where this is the case.
Switch the non-cross derivation case to have a target of "", rather than
matching the system, as this makes more sense, and is more consistent now that
the target values no longer match the system values.
Hardcode some more correct target values, and use these instead. Hopefully
this can be better integrated with Guix in the future.
This commit also includes a migration attempting to shrink some indexes.
Diffstat (limited to 'guix-data-service/model')
-rw-r--r-- | guix-data-service/model/derivation.scm | 9 |
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 |