does-it-build updates

This commit is contained in:
nora 2025-07-04 18:43:55 +02:00
parent 06b0de2840
commit 0cf252399c
3 changed files with 12 additions and 3 deletions

View file

@ -1,4 +1,11 @@
{ pkgs, lib, does-it-build, ... }: { { pkgs, lib, does-it-build, my-projects-versions, ... }:
let
does-it-build-base = does-it-build { inherit pkgs; };
does-it-build-with-commit = does-it-build-base.overrideAttrs (finalAttrs: previousAttrs: {
DOES_IT_BUILD_OVERRIDE_VERSION = my-projects-versions.does-it-build;
});
in
{
systemd.services.does-it-build = { systemd.services.does-it-build = {
description = "https://github.com/Noratrieb/does-it-build"; description = "https://github.com/Noratrieb/does-it-build";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -8,7 +15,7 @@
serviceConfig = { serviceConfig = {
User = "does-it-build"; User = "does-it-build";
Group = "does-it-build"; Group = "does-it-build";
ExecStart = "${lib.getExe' (does-it-build {inherit pkgs;}) "does-it-build" }"; ExecStart = "${lib.getExe' (does-it-build-with-commit) "does-it-build" }";
Environment = "DB_PATH=/var/lib/does-it-build/db.sqlite"; Environment = "DB_PATH=/var/lib/does-it-build/db.sqlite";
}; };
}; };

View file

@ -20,6 +20,8 @@
quotdd = import (fetchTarball "https://github.com/Noratrieb/quotdd/archive/${my-projects-versions.quotdd}.tar.gz"); quotdd = import (fetchTarball "https://github.com/Noratrieb/quotdd/archive/${my-projects-versions.quotdd}.tar.gz");
does-it-build = import (fetchTarball "https://github.com/Noratrieb/does-it-build/archive/${my-projects-versions.does-it-build}.tar.gz"); does-it-build = import (fetchTarball "https://github.com/Noratrieb/does-it-build/archive/${my-projects-versions.does-it-build}.tar.gz");
inherit my-projects-versions;
inherit nixpkgs-path; inherit nixpkgs-path;
networkingConfig = { networkingConfig = {

View file

@ -4,5 +4,5 @@
"slides": "0401f35c22b124b69447655f0c537badae9e223c", "slides": "0401f35c22b124b69447655f0c537badae9e223c",
"pretense": "270b01fc1118dfd713c1c41530d1a7d98f04527d", "pretense": "270b01fc1118dfd713c1c41530d1a7d98f04527d",
"quotdd": "e922229e1d9e055be35dabd112bafc87a0686548", "quotdd": "e922229e1d9e055be35dabd112bafc87a0686548",
"does-it-build": "5ec24bbfaf39edd60865b2879107835b99e133d0" "does-it-build": "9de21d41983e86fa8afe5c373c6c7b9e3deece28"
} }