initial commit
This commit is contained in:
commit
4014d5e658
30 changed files with 911 additions and 0 deletions
26
overlays/zmotd/default.nix
Normal file
26
overlays/zmotd/default.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue