at master 68 lines 1.7 kB view raw
1{ 2 mkDerivation, 3 lib, 4 fetchFromGitHub, 5 qtbase, 6 qtscript, 7 cmake, 8}: 9 10mkDerivation rec { 11 pname = "grantlee"; 12 version = "5.3.1"; 13 grantleePluginPrefix = "lib/grantlee/${lib.versions.majorMinor version}"; 14 15 src = fetchFromGitHub { 16 owner = "steveire"; 17 repo = "grantlee"; 18 rev = "v${version}"; 19 sha256 = "sha256-enP7b6A7Ndew2LJH569fN3IgPu2/KL5rCmU/jmKb9sY="; 20 }; 21 22 buildInputs = [ 23 qtbase 24 qtscript 25 ]; 26 nativeBuildInputs = [ cmake ]; 27 28 patches = [ 29 ./grantlee-nix-profiles.patch 30 ./grantlee-no-canonicalize-filepath.patch 31 ]; 32 33 outputs = [ 34 "out" 35 "dev" 36 ]; 37 postFixup = 38 # Disabuse CMake of the notion that libraries are in $dev 39 '' 40 for way in release debug; do 41 cmake="$dev/lib/cmake/Grantlee5/GrantleeTargets-$way.cmake" 42 if [ -f "$cmake" ]; then 43 sed -i "$cmake" -e "s|\''${_IMPORT_PREFIX}|$out|" 44 fi 45 done 46 ''; 47 48 setupHook = ./setup-hook.sh; 49 50 doCheck = false; # fails all the tests (ctest) 51 52 meta = with lib; { 53 description = "Qt5 port of Django template system"; 54 longDescription = '' 55 Grantlee is a plugin based String Template system written using the Qt 56 framework. The goals of the project are to make it easier for application 57 developers to separate the structure of documents from the data they 58 contain, opening the door for theming. 59 60 The syntax is intended to follow the syntax of the Django template system, 61 and the design of Django is reused in Grantlee.''; 62 63 homepage = "https://github.com/steveire/grantlee"; 64 maintainers = [ maintainers.ttuegel ]; 65 license = licenses.lgpl21; 66 inherit (qtbase.meta) platforms; 67 }; 68}