Merge pull request #157489 from McSinyx/mepo-0.3

mepo: 0.2 -> 0.3
This commit is contained in:
Bobby Rong 2022-01-31 19:39:16 +08:00 committed by GitHub
commit 31d25842a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
'';