Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 qmake, 6 qtbase, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "qt-jdenticon"; 11 version = "0.3.1"; 12 13 src = fetchFromGitHub { 14 owner = "Nheko-Reborn"; 15 repo = "qt-jdenticon"; 16 rev = "v${finalAttrs.version}"; 17 hash = "sha256-3XJHBn+S6oDPfmWSyFDW7qkg69wuxj+GUqMBUCDp3n0="; 18 }; 19 20 nativeBuildInputs = [ qmake ]; 21 buildInputs = [ qtbase ]; 22 23 dontWrapQtApps = true; 24 25 postPatch = '' 26 # Fix plugins dir 27 substituteInPlace QtIdenticon.pro \ 28 --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" 29 ''; 30 31 meta = { 32 description = "Qt plugin for generating highly recognizable identicons"; 33 homepage = "https://github.com/Nheko-Reborn/qt-jdenticon"; 34 license = lib.licenses.mit; 35 platforms = lib.platforms.all; 36 maintainers = with lib.maintainers; [ unclechu ]; 37 }; 38})