mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
Most packages that used fetchFromGitea fetch their sources from Codeberg, so might as well migrate them.
The following command was used for this treewide:
```fish
for i in (rg 'fetchFromGitea \{\n *domain = "codeberg.org";' --multiline --files-with-matches)
sed -z 's/fetchFromGitea {\n *domain = "codeberg.org";/fetchFromCodeberg {/g' $i > $i.tmp && mv $i.tmp $i
sed -i 's/fetchFromGitea/fetchFromCodeberg/g' $i
end
```
The following paths were manually edited:
* pkgs/by-name/xr/xrsh/package.nix
* pkgs/applications/networking/browsers/librewolf/src.nix
* pkgs/by-name/go/gotosocial/package.nix
* pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix
Co-authored-by: Gutyina Gergő <gutyina.gergo.2@gmail.com>
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
nix-update-script,
|
|
buildNpmPackage,
|
|
fetchFromCodeberg,
|
|
nodejs_22,
|
|
kwin,
|
|
kpackage,
|
|
zip,
|
|
}:
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "krohnkite";
|
|
version = "0.9.9.2";
|
|
|
|
src = fetchFromCodeberg {
|
|
owner = "anametologin";
|
|
repo = "Krohnkite";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-gulKg23BeWL270B2omRYJIuAHIsKu1cBVpimgButM9I=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-6+meI602VKIzqunTOwNRLZOO7/LscjNm545icc2WN0c=";
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
nodejs = nodejs_22;
|
|
|
|
nativeBuildInputs = [
|
|
kpackage
|
|
zip
|
|
kwin
|
|
];
|
|
|
|
npmBuildScript = "tsc";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
substituteInPlace Makefile --replace-fail '7z a -tzip' 'zip -r'
|
|
# Override PROJECT_VER and PROJECT_REV because we don't have .git
|
|
make \
|
|
KWINPKG_FILE=krohnkite.kwinscript \
|
|
PROJECT_REV=${finalAttrs.version} \
|
|
PROJECT_VER=${finalAttrs.version} \
|
|
krohnkite.kwinscript
|
|
kpackagetool6 --type=KWin/Script --install=krohnkite.kwinscript --packageroot=$out/share/kwin/scripts
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Dynamic Tiling Extension for KWin 6";
|
|
homepage = "https://codeberg.org/anametologin/Krohnkite";
|
|
changelog = "https://codeberg.org/anametologin/Krohnkite/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
ben9986
|
|
dramforever
|
|
];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|