Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 xorg, 6 pkg-config, 7 wrapGAppsHook3, 8 go, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "ibus-bamboo"; 13 version = "0.8.4-rc6"; 14 15 src = fetchFromGitHub { 16 owner = "BambooEngine"; 17 repo = pname; 18 rev = "v" + lib.toUpper version; 19 sha256 = "sha256-8eBrgUlzrfQkgzr0/Nz/0FQ98UBdV0GQcZhJVbmyOg0="; 20 }; 21 22 nativeBuildInputs = [ 23 pkg-config 24 wrapGAppsHook3 25 go 26 ]; 27 28 buildInputs = [ 29 xorg.libXtst 30 ]; 31 32 preConfigure = '' 33 export GOCACHE="$TMPDIR/go-cache" 34 sed -i "s,/usr,$out," data/bamboo.xml 35 ''; 36 37 makeFlags = [ 38 "PREFIX=${placeholder "out"}" 39 ]; 40 41 meta = with lib; { 42 isIbusEngine = true; 43 description = "Vietnamese IME for IBus"; 44 homepage = "https://github.com/BambooEngine/ibus-bamboo"; 45 license = licenses.gpl3; 46 platforms = platforms.linux; 47 maintainers = with maintainers; [ astronaut0212 ]; 48 }; 49}