mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +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/'
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libxkbcommon
|
|
, pkg-config
|
|
, wayland
|
|
, wayland-protocols
|
|
, wayland-scanner
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "havoc";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ii8";
|
|
repo = "havoc";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-jvGm2gFdMS61otETF7gOEpYn6IuLfqI95IpEVfIv+C4=";
|
|
};
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
wayland-protocols
|
|
wayland-scanner
|
|
];
|
|
|
|
buildInputs = [
|
|
libxkbcommon
|
|
wayland
|
|
];
|
|
|
|
dontConfigure = true;
|
|
|
|
installFlags = [ "PREFIX=$$out" ];
|
|
|
|
postInstall = ''
|
|
install -Dm 644 havoc.cfg -t $out/etc/havoc/
|
|
install -Dm 644 README.md -t $out/share/doc/havoc-${finalAttrs.version}/
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ii8/havoc";
|
|
description = "Minimal terminal emulator for Wayland";
|
|
license = with lib.licenses; [ mit publicDomain ];
|
|
mainProgram = "havoc";
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
inherit (wayland.meta) platforms;
|
|
broken = stdenv.isDarwin; # fatal error: 'sys/epoll.h' file not found
|
|
};
|
|
})
|