initial commit

This commit is contained in:
Squibid 2025-11-09 23:51:40 -05:00
commit 4014d5e658
Signed by: squibid
GPG key ID: BECE5684D3C4005D
30 changed files with 911 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ unstable }:
final: prev: {
zmotd = prev.stdenv.mkDerivation rec {
pname = "zmotd";
version = "1.0";
src = prev.fetchFromGitea {
domain = "git.squi.bid";
owner = "squibid";
repo = "zmotd";
rev = "48e7f34efb506f231bdc5070cb44a360fbd83cf1";
sha256 = "sha256-8c5cMXzb6oq2kL6rZUrqjz/QeOryN7HXe+mYwjR9/k0=";
};
deps = prev.callPackage ./build.zig.zon.nix {};
nativeBuildInputs = [ unstable.zig.hook ]; # this hook is what defines the actual build process
zigBuildFlags = [ "--system" "${deps}" ]; # and this makes sure that zig doesn't try and fetch the dependencies on it's own
meta = {
description = "Literally just a motd setter for my servers.";
license = "GPLv3";
homepage = "https://git.squi.bid/squibid/zmotd";
mainProgram = "zmotd";
maintainers = [ "squibid" ];
};
};
}