nixfiles/overlay/zar/default.nix

24 lines
563 B
Nix
Raw Normal View History

2021-12-21 12:59:07 +00:00
{ stdenv, fetchFromGitLab, lib, zig }: stdenv.mkDerivation rec {
pname = "zar";
version = "latest-1";
src = fetchFromGitLab {
owner = "ChaotiCryptidz";
repo = "zar";
rev = "719ea5667d889245f842aa02f9046263f08052f0";
sha256 = "sha256-Z2mjyJTsc7B9tIkufrFAfA4rp0cCON3G2mPGrfrh3HA=";
#sha256 = lib.fakeSha256;
2021-12-21 12:59:07 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ zig ];
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
zig build -Drelease-safe -Dweather_location="Leighton Buzzard" --prefix $out install
'';
}