Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
kpackage,
kwin,
nodejs,
typescript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "karousel";
version = "0.14";
src = fetchFromGitHub {
owner = "peterfajdiga";
repo = "karousel";
rev = "v${finalAttrs.version}";
hash = "sha256-bJv3fQ8w4bAtthlrDjj3cWA8lSpcJCEtJFk5C+94K5M=";
};
postPatch = ''
patchShebangs run-ts.sh
substituteInPlace Makefile \
--replace-fail "build: lint tests" "build: tests"
'';
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;
};
})