Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libsForQt5, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "libguytools"; 10 version = "2.1.0"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/project/libguytools/libguytools/LatestSource/tools-${finalAttrs.version}.tar.gz"; 14 hash = "sha256-eVYvjo2wKW2g9/9hL9nbQa1FRWDMMqMHok0V/adPHVY="; 15 }; 16 17 qmakeFlags = [ 18 "trunk.pro" 19 "toolsstatic.pro" 20 ]; 21 22 enableParallelBuilding = true; 23 24 nativeBuildInputs = [ 25 libsForQt5.qmake 26 libsForQt5.wrapQtAppsHook 27 ]; 28 dontWrapQtApps = true; 29 buildInputs = [ libsForQt5.qtbase ]; 30 31 postPatch = '' 32 sed -i "/dpkg-buildflags/d" tools.pro 33 patchShebangs create_version_file.sh 34 ''; 35 36 preConfigure = '' 37 ./create_version_file.sh 38 ''; 39 40 installPhase = '' 41 runHook preInstall 42 mkdir -p $out 43 cp -r lib $out/ 44 cp -r include $out/ 45 runHook postInstall 46 ''; 47 48 meta = { 49 description = "Small programming toolbox"; 50 mainProgram = "libguytools"; 51 homepage = "https://libguytools.sourceforge.io"; 52 maintainers = with lib.maintainers; [ d3vil0p3r ]; 53 platforms = lib.platforms.linux; 54 license = lib.licenses.gpl2Plus; 55 }; 56})