mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
Merge pull request #268299 from jankaifer/jankaifer/keymapp
Add package keymapp
This commit is contained in:
commit
e264ed1f15
@ -8248,6 +8248,12 @@
|
||||
github = "Janik-Haag";
|
||||
githubId = 80165193;
|
||||
};
|
||||
jankaifer = {
|
||||
name = "Jan Kaifer";
|
||||
email = "jan@kaifer.cz";
|
||||
github = "jankaifer";
|
||||
githubId = 12820484;
|
||||
};
|
||||
jansol = {
|
||||
email = "jan.solanti@paivola.fi";
|
||||
github = "jansol";
|
||||
|
68
pkgs/applications/misc/keymapp/default.nix
Normal file
68
pkgs/applications/misc/keymapp/default.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, autoPatchelfHook
|
||||
, wrapGAppsHook
|
||||
, libusb1
|
||||
, webkitgtk
|
||||
, gtk3
|
||||
, writeShellScript
|
||||
, makeDesktopItem
|
||||
, copyDesktopItems
|
||||
}:
|
||||
let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "keymapp";
|
||||
icon = "keymapp";
|
||||
desktopName = "Keymapp";
|
||||
categories = [ "Settings" "HardwareSettings" ];
|
||||
type = "Application";
|
||||
exec = "keymapp";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "keymapp";
|
||||
version = "1.0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://oryx.nyc3.cdn.digitaloceanspaces.com/keymapp/keymapp-${version}.tar.gz";
|
||||
hash = "sha256-BmCLF/4wjBDxToMW0OYqI6PZwqmctgBs7nBygmJ+YOU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
autoPatchelfHook
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libusb1
|
||||
webkitgtk
|
||||
gtk3
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -m755 -D keymapp "$out/bin/${pname}"
|
||||
install -Dm644 icon.png "$out/share/pixmaps/${pname}.png"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(--set-default '__NV_PRIME_RENDER_OFFLOAD' 1)
|
||||
'';
|
||||
|
||||
desktopItems = [ desktopItem ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.zsa.io/flash/";
|
||||
description = "Application for ZSA keyboards";
|
||||
maintainers = with lib.maintainers; [ jankaifer shawn8901 ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.unfree;
|
||||
};
|
||||
}
|
@ -9829,6 +9829,8 @@ with pkgs;
|
||||
|
||||
keyfuzz = callPackage ../tools/inputmethods/keyfuzz { };
|
||||
|
||||
keymapp = callPackage ../applications/misc/keymapp { };
|
||||
|
||||
keyscope = callPackage ../tools/security/keyscope {
|
||||
inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit Security;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user