konbucase: 4.1.2 -> 4.4.0 (#403787)
This commit is contained in:
38
pkgs/by-name/ch/chcase/package.nix
Normal file
38
pkgs/by-name/ch/chcase/package.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
meson,
|
||||
ninja,
|
||||
vala,
|
||||
pkg-config,
|
||||
blueprint-compiler,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "chcase";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ryonakano";
|
||||
repo = "chcase";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-3TuAnuWV3Sm1T76Go4NWe2eA55ImR1TFYoCUnqfp9DE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
vala
|
||||
pkg-config
|
||||
blueprint-compiler
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/ryonakano/chcase";
|
||||
description = "Small library to convert case of a given string";
|
||||
license = lib.licenses.lgpl3Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ emaryn ];
|
||||
};
|
||||
})
|
||||
@@ -7,19 +7,22 @@
|
||||
vala,
|
||||
pkg-config,
|
||||
wrapGAppsHook3,
|
||||
blueprint-compiler,
|
||||
pantheon,
|
||||
gtksourceview5,
|
||||
chcase,
|
||||
libadwaita,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "konbucase";
|
||||
version = "4.1.2";
|
||||
version = "4.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ryonakano";
|
||||
repo = "konbucase";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-md7drxg1JuW6TRJauKOk4Aqjx/V1RVZ+POa5v6DtKwk=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-56P2RueZSsuQth8IB73r3WYXCQ+rEyfQpGXhLAAeFlY=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
@@ -29,25 +32,28 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
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 'Exec=com.github.ryonakano.konbucase' 'Exec=${placeholder "out"}/bin/konbucase'
|
||||
--replace-fail "Exec=com.github.ryonakano.konbucase" "Exec=konbucase"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://github.com/ryonakano/konbucase";
|
||||
description = "Case converting app suitable for coding or typing";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ galaxy ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ galaxy ];
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "konbucase";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user