mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
36 lines
761 B
Nix
36 lines
761 B
Nix
{ lib
|
|
, stdenv
|
|
, cmake
|
|
, pkg-config
|
|
, glib
|
|
, fetchFromGitHub
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "g3kb-switch";
|
|
version = "1.5";
|
|
src = fetchFromGitHub {
|
|
owner = "lyokha";
|
|
repo = "g3kb-switch";
|
|
rev = version;
|
|
hash = "sha256-kTJfV0xQmWuxibUlfC1qJX2J2nrZ4wimdf/nGciQq0Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
glib
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/lyokha/g3kb-switch";
|
|
changelog = "https://github.com/lyokha/g3kb-switch/releases/tag/${src.rev}";
|
|
description = "CLI keyboard layout switcher for GNOME Shell";
|
|
mainProgram = "g3kb-switch";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ Freed-Wu ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|