mepo: 0.2 -> 0.3

This commit is contained in:
Nguyễn Gia Phong 2022-01-31 14:43:17 +07:00
parent 5bb20f9dc7
commit 9811d0d44c
No known key found for this signature in database
GPG Key ID: 27148B2C06A2224B

View File

@ -5,32 +5,28 @@
, zig
, curl
, SDL2
, SDL2_gfx
, SDL2_image
, SDL2_ttf
}:
stdenv.mkDerivation rec {
pname = "mepo";
version = "0.2";
version = "0.3";
src = fetchFromSourcehut {
owner = "~mil";
repo = pname;
rev = version;
hash = "sha256-ECq748GpjOjvchzAWlGA7H7HBvKNxY9d43+PTOWopiM=";
hash = "sha256-B7BOAFhiOTILUdzh49hTMrNNHZpCNRDLW2uekXyptqQ=";
};
nativeBuildInputs = [ pkg-config zig ];
buildInputs = [ curl SDL2 SDL2_image SDL2_ttf ];
buildPhase = ''
runHook preBuild
buildInputs = [ curl SDL2 SDL2_gfx SDL2_image SDL2_ttf ];
preBuild = ''
export HOME=$TMPDIR
zig build -Drelease-safe=true -Dcpu=baseline
runHook postBuild
'';
doCheck = true;
@ -45,8 +41,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
install -Dm755 zig-out/bin/mepo -t $out/bin
install -Dm755 scripts/mepo_* $out/bin
zig build -Drelease-safe=true -Dcpu=baseline --prefix $out install
runHook postInstall
'';