2017-06-02 16:40:19 +01:00
|
|
|
{ lib, stdenv, fetchurl, qtbase, qmake, makeWrapper }:
|
2015-12-16 20:39:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "awesomebump-4.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://github.com/kmkolasinski/AwesomeBump/archive/Linuxv4.0.tar.gz;
|
|
|
|
sha256 = "1rp4m4y2ld49hibzwqwy214cbiin80i882d9l0y1znknkdcclxf2";
|
|
|
|
};
|
|
|
|
|
|
|
|
setSourceRoot = "sourceRoot=$(echo */Sources)";
|
|
|
|
|
2017-06-02 16:40:19 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper qmake ];
|
|
|
|
buildInputs = [ qtbase ];
|
2015-12-16 20:39:26 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2017-09-14 13:42:38 +01:00
|
|
|
# RPATH in /tmp hack
|
|
|
|
preFixup = ''
|
|
|
|
rm -r $NIX_BUILD_TOP/__nix_qt5__
|
|
|
|
'';
|
|
|
|
|
2015-12-16 20:39:26 +00:00
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/kmkolasinski/AwesomeBump;
|
|
|
|
description = "A program to generate normal, height, specular or ambient occlusion textures from a single image";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|