60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
vala,
|
|
pkg-config,
|
|
wrapGAppsHook3,
|
|
blueprint-compiler,
|
|
pantheon,
|
|
gtksourceview5,
|
|
chcase,
|
|
libadwaita,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "konbucase";
|
|
version = "4.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ryonakano";
|
|
repo = "konbucase";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-56P2RueZSsuQth8IB73r3WYXCQ+rEyfQpGXhLAAeFlY=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
vala
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
blueprint-compiler
|
|
];
|
|
|
|
buildInputs = [
|
|
pantheon.granite7
|
|
gtksourceview5
|
|
chcase
|
|
libadwaita
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/com.github.ryonakano.konbucase $out/bin/konbucase
|
|
substituteInPlace $out/share/applications/com.github.ryonakano.konbucase.desktop \
|
|
--replace-fail "Exec=com.github.ryonakano.konbucase" "Exec=konbucase"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ryonakano/konbucase";
|
|
description = "Case converting app suitable for coding or typing";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ galaxy ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "konbucase";
|
|
};
|
|
})
|