mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
49 lines
944 B
Nix
49 lines
944 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kpackage,
|
|
kwin,
|
|
nodejs,
|
|
typescript,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "karousel";
|
|
version = "0.9.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "peterfajdiga";
|
|
repo = "karousel";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-L6N1TCvc9AoTTJrAnO68lbSZq8M668BHAU7ynNzoTn8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs run-ts.sh
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
kpackage
|
|
nodejs
|
|
typescript
|
|
];
|
|
buildInputs = [ kwin ];
|
|
dontWrapQtApps = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
kpackagetool6 --type=KWin/Script --install=./package --packageroot=$out/share/kwin/scripts
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Scrollable tiling Kwin script";
|
|
homepage = "https://github.com/peterfajdiga/karousel";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ k900 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|