uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
27
pkgs/development/tools/misc/premake/3.nix
Normal file
27
pkgs/development/tools/misc/premake/3.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{lib, stdenv, fetchurl, unzip}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "premake";
|
||||
version = "3.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/sourceforge/premake/premake-src-${version}.zip";
|
||||
sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 bin/premake $out/bin/premake
|
||||
'';
|
||||
|
||||
premake_cmd = "premake";
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = {
|
||||
homepage = "https://premake.github.io/";
|
||||
description = "A simple build configuration and project generation tool using lua";
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
43
pkgs/development/tools/misc/premake/5.nix
Normal file
43
pkgs/development/tools/misc/premake/5.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchFromGitHub, Foundation, readline }:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "premake5";
|
||||
version = "5.0.0-alpha12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "premake";
|
||||
repo = "premake-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "1h3hr96pdz94njn4bg02ldcz0k5j1x017d8svc7fdyvl2b77nqzf";
|
||||
};
|
||||
|
||||
buildInputs = optionals stdenv.isDarwin [ Foundation readline ];
|
||||
|
||||
patchPhase = optional stdenv.isDarwin ''
|
||||
substituteInPlace premake5.lua \
|
||||
--replace -mmacosx-version-min=10.4 -mmacosx-version-min=10.5
|
||||
'';
|
||||
|
||||
buildPhase =
|
||||
if stdenv.isDarwin then ''
|
||||
make -f Bootstrap.mak osx
|
||||
'' else ''
|
||||
make -f Bootstrap.mak linux
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 bin/release/premake5 $out/bin/premake5
|
||||
'';
|
||||
|
||||
premake_cmd = "premake5";
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = {
|
||||
homepage = "https://premake.github.io";
|
||||
description = "A simple build configuration and project generation tool using lua";
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = platforms.darwin ++ platforms.linux;
|
||||
};
|
||||
}
|
||||
33
pkgs/development/tools/misc/premake/default.nix
Normal file
33
pkgs/development/tools/misc/premake/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "premake";
|
||||
version = "4.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/premake/premake-${version}-src.zip";
|
||||
sha256 = "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
buildPhase = ''
|
||||
make -C build/gmake.unix/
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 bin/release/premake4 $out/bin/premake4
|
||||
'';
|
||||
|
||||
premake_cmd = "premake4";
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple build configuration and project generation tool using lua";
|
||||
homepage = "https://premake.github.io/";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
mainProgram = "premake4";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
19
pkgs/development/tools/misc/premake/setup-hook.sh
Normal file
19
pkgs/development/tools/misc/premake/setup-hook.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
premakeConfigurePhase() {
|
||||
runHook preConfigure
|
||||
|
||||
local flagsArray=(
|
||||
${premakefile:+--file=$premakefile}
|
||||
$premakeFlags ${premakeFlagsArray[@]}
|
||||
${premakeBackend:-gmake}
|
||||
)
|
||||
|
||||
echoCmd 'configure flags' "${flagsArray[@]}"
|
||||
|
||||
@premake_cmd@ "${flagsArray[@]}"
|
||||
|
||||
runHook postConfigure
|
||||
}
|
||||
|
||||
if [ -z "${configurePhase-}" ]; then
|
||||
configurePhase=premakeConfigurePhase
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue