23 lines
533 B
Nix
23 lines
533 B
Nix
{ stdenv, fetchFromGitLab, lib, zig }: stdenv.mkDerivation rec {
|
|
pname = "zar";
|
|
version = "latest-1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "ChaotiCryptidz";
|
|
repo = "zar";
|
|
rev = "9f78c26bb68c59b56d04f6eba464e58221389dc0";
|
|
sha256 = "sha256-lv49+te8cPMjrqwL88gGlIRUgEaol4jjyeFBOr8ouS4=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ zig ];
|
|
|
|
preBuild = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
installPhase = ''
|
|
zig build -Drelease-safe -Dweather_location="Leighton Buzzard" --prefix $out install
|
|
'';
|
|
}
|