mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, vala
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, pantheon
|
|
, gtksourceview5
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "konbucase";
|
|
version = "4.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ryonakano";
|
|
repo = "konbucase";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-md7drxg1JuW6TRJauKOk4Aqjx/V1RVZ+POa5v6DtKwk=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
vala
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
pantheon.granite7
|
|
gtksourceview5
|
|
];
|
|
|
|
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'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
mainProgram = "konbucase";
|
|
};
|
|
})
|