My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/applications/misc/mepo/default.nix

58 lines
1.0 KiB

{ lib
, stdenv
, fetchFromSourcehut
, pkg-config
, zig
, curl
, SDL2
2 years ago
, SDL2_gfx
, SDL2_image
, SDL2_ttf
}:
stdenv.mkDerivation rec {
pname = "mepo";
2 years ago
version = "0.3";
src = fetchFromSourcehut {
owner = "~mil";
repo = pname;
rev = version;
2 years ago
hash = "sha256-B7BOAFhiOTILUdzh49hTMrNNHZpCNRDLW2uekXyptqQ=";
};
nativeBuildInputs = [ pkg-config zig ];
2 years ago
buildInputs = [ curl SDL2 SDL2_gfx SDL2_image SDL2_ttf ];
2 years ago
preBuild = ''
export HOME=$TMPDIR
'';
doCheck = true;
checkPhase = ''
runHook preCheck
zig build test
runHook postCheck
'';
installPhase = ''
runHook preInstall
2 years ago
zig build -Drelease-safe=true -Dcpu=baseline --prefix $out install
runHook postInstall
'';
meta = with lib; {
description = "Fast, simple, and hackable OSM map viewer";
homepage = "https://sr.ht/~mil/mepo/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
broken = stdenv.isDarwin; # See https://github.com/NixOS/nixpkgs/issues/86299
};
}