26 lines
876 B
Nix
26 lines
876 B
Nix
{ 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" ];
|
|
};
|
|
};
|
|
}
|