Files
nixpkgs/pkgs/by-name/gm/gmad/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
988 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
premake4,
bootil,
}:
stdenv.mkDerivation rec {
pname = "gmad";
version = "unstable-2020-02-24";
meta = {
description = "Garry's Mod Addon Creator and Extractor";
homepage = "https://github.com/Facepunch/gmad";
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.abigailbuccaneer ];
platforms = lib.platforms.all;
};
src = fetchFromGitHub {
owner = "Facepunch";
repo = "gmad";
rev = "5236973a2fcbb3043bdd3d4529ce68b6d938ad93";
sha256 = "04an17nvnj38mpi0w005v41ib8ynb5qhgrdkmsda4hq7l1gn276s";
};
buildInputs = [
premake4
bootil
];
targetName =
if stdenv.hostPlatform.isLinux then
"gmad_linux"
else if stdenv.hostPlatform.isDarwin then
"gmad_osx"
else
"gmad";
premakeFlags = [
"--bootil_lib=${bootil}/lib"
"--bootil_inc=${bootil}/include"
];
installPhase = ''
mkdir -p $out/bin
cp ${targetName} $out/bin/gmad
'';
}