2021-01-15 04:31:39 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, premake4, bootil }:
|
2016-10-24 16:54:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gmad-unstable-2015-04-16";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Garry's Mod Addon Creator and Extractor";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/garrynewman/gmad";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = [ lib.maintainers.abigailbuccaneer ];
|
|
|
|
platforms = lib.platforms.all;
|
2016-10-24 16:54:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "garrynewman";
|
|
|
|
repo = "gmad";
|
|
|
|
rev = "377f3458bf1ecb8a1a2217c2194773e3c2a2dea0";
|
|
|
|
sha256="0myi9njr100gxhxk1vrzr2sbij5kxl959sq0riiqgg01div338g0";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ premake4 bootil ];
|
|
|
|
|
|
|
|
targetName =
|
|
|
|
if stdenv.isLinux then "gmad_linux"
|
|
|
|
else if stdenv.isDarwin then "gmad_osx"
|
|
|
|
else "gmad";
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
premakeFlags = [ "--bootil_lib=${bootil}/lib" "--bootil_inc=${bootil}/include" ];
|
2016-10-24 16:54:50 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${targetName} $out/bin/gmad
|
|
|
|
'';
|
|
|
|
}
|