diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-12-16 21:39:26 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-12-16 23:31:41 +0100 |
commit | b797a67ffb56d3072bba3d2f5646fb23223b0783 (patch) | |
tree | 8324bf02fba39820bbfe1c138b09ce4d14fe1c08 /pkgs/applications/graphics/awesomebump | |
parent | fd45c7b82b65c31a5be7854d8566260b781c6d6b (diff) |
awesomebump: Add
Diffstat (limited to 'pkgs/applications/graphics/awesomebump')
-rw-r--r-- | pkgs/applications/graphics/awesomebump/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/awesomebump/default.nix b/pkgs/applications/graphics/awesomebump/default.nix new file mode 100644 index 0000000000000..77bddec7eb82e --- /dev/null +++ b/pkgs/applications/graphics/awesomebump/default.nix @@ -0,0 +1,39 @@ +{ lib, stdenv, fetchurl, qt5, makeWrapper }: + +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)"; + + buildInputs = [ qt5.base makeWrapper ]; + + preBuild = "qmake"; + + 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" + ''; + + 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; + }; +} |