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";
|
2021-12-25 17:22:53 +00:00
|
|
|
rev = "5f2d473ef89c0cbf77c2a66a22ba457fe4390dd9";
|
|
|
|
sha256 = "sha256-w0qXFJEL+Zbmsl9vUmrnG2P59zVo7RQdi+Fbvb3ucgw=";
|
2021-12-21 13:29:59 +00:00
|
|
|
#sha256 = lib.fakeSha256;
|
2021-12-21 12:59:07 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ zig ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-12-25 17:22:53 +00:00
|
|
|
zig build -Drelease-safe --prefix $out install
|
2021-12-21 12:59:07 +00:00
|
|
|
'';
|
|
|
|
}
|