Merge pull request #30728 from pmiddend/awesomebump-5.1
awesomebump: 4.0 -> 5.1
This commit is contained in:
commit
56a6144593
@ -1,36 +1,49 @@
|
|||||||
{ lib, stdenv, fetchurl, qtbase, qmake, makeWrapper }:
|
{ lib, stdenv, fetchgit, qtbase, qmake, makeWrapper, qtscript, gcc, flex, bison, qtdeclarative, gnutar }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "awesomebump-4.0";
|
|
||||||
|
|
||||||
src = fetchurl {
|
let
|
||||||
url = https://github.com/kmkolasinski/AwesomeBump/archive/Linuxv4.0.tar.gz;
|
version = "5.1";
|
||||||
sha256 = "1rp4m4y2ld49hibzwqwy214cbiin80i882d9l0y1znknkdcclxf2";
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://github.com/kmkolasinski/AwesomeBump.git";
|
||||||
|
rev = "Winx32v${version}";
|
||||||
|
sha256 = "1c8b9jki0v8kzkvsvyv7q1w3s7j40br6ph15hh2xi0a1mpwckq56";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
setSourceRoot = "sourceRoot=$(echo */Sources)";
|
qtnproperty = stdenv.mkDerivation {
|
||||||
|
name = "qtnproperty";
|
||||||
nativeBuildInputs = [ makeWrapper qmake ];
|
inherit src;
|
||||||
buildInputs = [ qtbase ];
|
sourceRoot = "AwesomeBump/Sources/utils/QtnProperty";
|
||||||
|
buildInputs = [ qtscript qtbase qtdeclarative ];
|
||||||
enableParallelBuilding = true;
|
nativeBuildInputs = [ qmake flex bison ];
|
||||||
|
postInstall = ''
|
||||||
installPhase =
|
install -D bin-linux/QtnPEG $out/bin/QtnPEG
|
||||||
''
|
|
||||||
d=$out/libexec/AwesomeBump
|
|
||||||
mkdir -p $d $out/bin
|
|
||||||
cp AwesomeBump $d/
|
|
||||||
cp -prd ../Bin/Configs ../Bin/Core $d/
|
|
||||||
|
|
||||||
# AwesomeBump expects to find Core and Configs in its current
|
|
||||||
# directory.
|
|
||||||
makeWrapper $d/AwesomeBump $out/bin/AwesomeBump \
|
|
||||||
--run "cd $d"
|
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "awesomebump-${version}";
|
||||||
|
|
||||||
# RPATH in /tmp hack
|
inherit src;
|
||||||
preFixup = ''
|
|
||||||
rm -r $NIX_BUILD_TOP/__nix_qt5__
|
buildInputs = [ qtbase qtscript qtdeclarative ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ qmake makeWrapper ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
ln -sf ${qtnproperty}/bin/QtnPEG Sources/utils/QtnProperty/bin-linux/QtnPEG
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
d=$out/libexec/AwesomeBump
|
||||||
|
|
||||||
|
mkdir -p $d
|
||||||
|
cp -vr workdir/`cat workdir/current`/bin/AwesomeBump $d/
|
||||||
|
cp -prd Bin/Configs Bin/Core $d/
|
||||||
|
|
||||||
|
# AwesomeBump expects to find Core and Configs in its current directory.
|
||||||
|
makeWrapper $d/AwesomeBump $out/bin/AwesomeBump \
|
||||||
|
--run "cd $d"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user