nix: streamline packaging

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I4643ed2c8e6f8ceb5e722612cc67a74e6a6a6964
This commit is contained in:
raf 2026-01-31 15:22:09 +03:00
commit 4d10074181
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -15,7 +15,7 @@
in
stdenv.mkDerivation {
pname = "chroma";
version = "1.0.0";
version = "1.0.1";
src = fs.toSource {
root = s;
@ -23,8 +23,11 @@ in
(s + /include)
(s + /protocols)
(s + /src)
(s + /Makefile)
# For testing
(s + /lib)
(s + /tests)
];
};
@ -49,9 +52,17 @@ in
makeFlags = [
"PREFIX=$(out)"
"SYSTEMD_DIR=$(out)/lib/systemd/system"
"SYSTEMD_DIR=$(out)/lib/systemd/system" # FIXME: this is an user service, actually
];
checkPhase = ''
runHook preCheck
make test
runHook postCheck
'';
postInstall = ''
install -Dm755 ${../chroma.conf.sample} $out/share/chroma.conf.sample
'';