mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gcc,
|
|
lua,
|
|
nix-update-script,
|
|
apple-sdk_15,
|
|
versionCheckHook,
|
|
}: let
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
target =
|
|
{
|
|
"aarch64-darwin" = "arm64";
|
|
"x86_64-darwin" = "x86";
|
|
}
|
|
.${system}
|
|
or (throw "Unsupported system: ${system}");
|
|
in
|
|
stdenv.mkDerivation (
|
|
finalAttrs: {
|
|
pname = "SBarLua";
|
|
version = "437bd2031da38ccda75827cb7548e7baa4aa9978";
|
|
src = fetchFromGitHub {
|
|
repo = "SbarLua";
|
|
owner = "FelixKratz";
|
|
rev = "437bd2031da38ccda75827cb7548e7baa4aa9978";
|
|
hash = "sha256-F0UfNxHM389GhiPQ6/GFbeKQq5EvpiqQdvyf7ygzkPg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gcc
|
|
];
|
|
|
|
buildInputs = [
|
|
apple-sdk_15
|
|
lua
|
|
];
|
|
|
|
# buildPhase = ''
|
|
# make
|
|
# '';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ls -la
|
|
|
|
cp ./bin/sbarlua $out/bin/sbarlua
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/FelixKratz/SbarLua";
|
|
platforms = lib.platforms.darwin;
|
|
};
|
|
}
|
|
)
|