Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 54 lines 1.2 kB view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 kcoreaddons, 6 kwindowsystem, 7 plasma-framework, 8 systemsettings, 9}: 10 11mkDerivation rec { 12 pname = "kwin-tiling"; 13 version = "2.4"; 14 15 src = fetchFromGitHub { 16 owner = "kwin-scripts"; 17 repo = "kwin-tiling"; 18 rev = "v${version}"; 19 sha256 = "095slpvipy0zcmbn0l7mdnl9g74jaafkr2gqi09b0by5fkvnbh37"; 20 }; 21 22 # This is technically not needed, but we might as well clean up 23 postPatch = '' 24 rm release.sh 25 ''; 26 27 buildInputs = [ 28 kcoreaddons 29 kwindowsystem 30 plasma-framework 31 systemsettings 32 ]; 33 34 dontBuild = true; 35 36 # 1. --global still installs to $HOME/.local/share so we use --packageroot 37 # 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually 38 installPhase = '' 39 runHook preInstall 40 41 plasmapkg2 --type kwinscript --install ${src} --packageroot $out/share/kwin/scripts 42 install -Dm644 ${src}/metadata.desktop $out/share/kservices5/kwin-script-tiling.desktop 43 44 runHook postInstall 45 ''; 46 47 meta = with lib; { 48 description = "Tiling script for kwin"; 49 license = licenses.gpl2; 50 maintainers = with maintainers; [ peterhoeg ]; 51 inherit (src.meta) homepage; 52 inherit (kwindowsystem.meta) platforms; 53 }; 54}