aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-05-05 12:30:26 -0400
committerXe Iaso <me@xeiaso.net>2024-05-05 12:30:35 -0400
commitd63f1f57ec0bbc95adc14ca6b0d15c59209b2124 (patch)
treead42b5a03a613b531a7249f961d716d8e2d3b960
parent898fd37fa6698f3ba9630375fc14e8d178f66316 (diff)
downloadx-d63f1f57ec0bbc95adc14ca6b0d15c59209b2124.tar.xz
x-d63f1f57ec0bbc95adc14ca6b0d15c59209b2124.zip
flake: build sapientwindex
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--cmd/sapientwindex/yeetfile.js3
-rw-r--r--flake.nix44
2 files changed, 31 insertions, 16 deletions
diff --git a/cmd/sapientwindex/yeetfile.js b/cmd/sapientwindex/yeetfile.js
new file mode 100644
index 0000000..9ac9169
--- /dev/null
+++ b/cmd/sapientwindex/yeetfile.js
@@ -0,0 +1,3 @@
+nix.build(".#docker.sapientwindex");
+docker.load("./result");
+docker.push("ghcr.io/xe/x/sapientwindex");
diff --git a/flake.nix b/flake.nix
index bf5d0ba..014f5c8 100644
--- a/flake.nix
+++ b/flake.nix
@@ -28,7 +28,8 @@
iaso-fonts.url = "github:Xe/iosevka";
};
- outputs = { self, nixpkgs, utils, rust-overlay, naersk, xess, iaso-fonts }@inputs:
+ outputs =
+ { self, nixpkgs, utils, rust-overlay, naersk, xess, iaso-fonts }@inputs:
utils.lib.eachSystem [
"x86_64-linux"
"aarch64-linux"
@@ -58,7 +59,11 @@
rust = pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analysis" "clippy" "rustfmt" ];
- targets = [ "wasm32-wasi" "wasm32-unknown-unknown" "riscv64gc-unknown-linux-gnu" ];
+ targets = [
+ "wasm32-wasi"
+ "wasm32-unknown-unknown"
+ "riscv64gc-unknown-linux-gnu"
+ ];
};
naersk' = pkgs.callPackage naersk {
@@ -227,6 +232,7 @@
prefix = copyFile { pname = "prefix"; };
quickserv = copyFile { pname = "quickserv"; };
sanguisuga = copyFile { pname = "sanguisuga"; };
+ sapientwindex = copyFile { pname = "sapientwindex"; };
todayinmarch2020 = copyFile { pname = "todayinmarch2020"; };
uploud = copyFile { pname = "uploud"; };
vest-pit-near = copyFile { pname = "vest-pit-near"; };
@@ -240,8 +246,24 @@
robocadey2 = self.packages.${system}.robocadey2;
xedn = self.packages.${system}.xedn;
mimi = self.packages.${system}.mimi;
+ sapientwindex = self.packages.${system}.sapientwindex;
tourian = self.packages.${system}.tourian;
+
+ simple = { name, cmd, pkg, contents ? [ pkgs.cacert ] }:
+ pkgs.dockerTools.buildLayeredImage {
+ tag = "latest";
+ inherit contents name;
+ config = {
+ Cmd = cmd;
+ WorkingDir = "${pkg}";
+ };
+ };
in {
+ sapientwindex = simple {
+ name = "ghcr.io/Xe/x/sapientwindex";
+ pkg = sapientwindex;
+ cmd = "${sapientwindex}/bin/sapientwindex";
+ };
mimi = pkgs.dockerTools.buildLayeredImage {
name = "registry.fly.io/mimi";
tag = "latest";
@@ -272,23 +294,13 @@
xedn = pkgs.dockerTools.buildLayeredImage {
name = "registry.fly.io/xedn";
tag = "latest";
- contents = [ pkgs.cacert xedn self.packages.${system}.xedn-static ];
- config = {
- Cmd = [ "${xedn}/bin/xedn" ];
- WorkingDir = "${xedn}";
- Env = [ "XEDN_STATIC=${self.packages.${system}.xedn-static}" ];
- };
- };
- xedn-squished = pkgs.dockerTools.buildLayeredImage {
- name = "registry.fly.io/xedn";
- tag = "latest";
- contents = [ pkgs.cacert xedn self.packages.${system}.xedn-static ];
+ contents =
+ [ pkgs.cacert xedn self.packages.${system}.xedn-static ];
config = {
Cmd = [ "${xedn}/bin/xedn" ];
WorkingDir = "${xedn}";
Env = [ "XEDN_STATIC=${self.packages.${system}.xedn-static}" ];
};
- maxLayers = 10;
};
};
portable = {
@@ -330,9 +342,9 @@
python3Packages.huggingface-hub
python3Packages.datasets
-
+
perl
-
+
pkg-config
libaom
libavif