Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 55 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchgit, 5 libsForQt5, 6}: 7 8let 9 version = "3.1.0"; 10 11 main_src = fetchgit { 12 url = "https://www.opencode.net/dfn2/ocs-url.git"; 13 rev = "release-${version}"; 14 sha256 = "RvbkcSj8iUAHAEOyETwfH+3XnCCY/p8XM8LgVrZxrws="; 15 }; 16 17 qtil_src = fetchgit { 18 url = "https://github.com/akiraohgaki/qtil"; 19 rev = "v0.4.0"; 20 sha256 = "XRSp0F7ggfkof1RNAnQU3+O9DcXDy81VR7NakITOXrw="; 21 }; 22in 23 24stdenv.mkDerivation { 25 pname = "ocs-url"; 26 inherit version; 27 28 srcs = [ 29 main_src 30 qtil_src 31 ]; 32 sourceRoot = main_src.name; 33 34 # We are NOT in $sourceRoot here 35 postUnpack = '' 36 mkdir -p $sourceRoot/lib/qtil 37 cp -r ${qtil_src.name}/* $sourceRoot/lib/qtil/ 38 ''; 39 40 buildInputs = with libsForQt5.qt5; [ 41 qtbase 42 qtsvg 43 qtquickcontrols 44 qmake 45 wrapQtAppsHook 46 ]; 47 48 meta = with lib; { 49 description = "Open Collaboration System for use with DE store websites"; 50 license = licenses.gpl3Only; 51 maintainers = with maintainers; [ SohamG ]; 52 platforms = platforms.linux; 53 mainProgram = "ocs-url"; 54 }; 55}