nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 769 B view raw
1{ 2 lib, 3 stdenv, 4 cmake, 5 pkg-config, 6 glib, 7 fetchFromGitHub, 8}: 9stdenv.mkDerivation rec { 10 pname = "g3kb-switch"; 11 version = "1.5"; 12 src = fetchFromGitHub { 13 owner = "lyokha"; 14 repo = "g3kb-switch"; 15 rev = version; 16 hash = "sha256-kTJfV0xQmWuxibUlfC1qJX2J2nrZ4wimdf/nGciQq0Y="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 pkg-config 22 ]; 23 buildInputs = [ 24 glib 25 ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/lyokha/g3kb-switch"; 29 changelog = "https://github.com/lyokha/g3kb-switch/releases/tag/${src.rev}"; 30 description = "CLI keyboard layout switcher for GNOME Shell"; 31 mainProgram = "g3kb-switch"; 32 license = licenses.bsd2; 33 maintainers = with maintainers; [ Freed-Wu ]; 34 platforms = platforms.unix; 35 }; 36}