depot/third_party/nixpkgs/pkgs/applications/editors/howl/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }:
stdenv.mkDerivation rec {
pname = "howl";
version = "0.6";
# Use the release tarball containing pre-downloaded dependencies sources
src = fetchurl {
url = "https://github.com/howl-editor/howl/releases/download/${version}/howl-${version}.tgz";
sha256 = "1qc58l3rkr37cj6vhf8c7bnwbz93nscyraz7jxqwjq6k4gj0cjw3";
};
sourceRoot = "howl-${version}/src";
# The Makefile uses "/usr/local" if not explicitly overridden
installFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ makeWrapper pkg-config ];
buildInputs = [ gtk3 librsvg ];
enableParallelBuilding = true;
# Required for the program to properly load its SVG assets
postInstall = ''
wrapProgram $out/bin/howl \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
'';
meta = with lib; {
homepage = "https://howl.io/";
description = "General purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
license = licenses.mit;
maintainers = with maintainers; [ pacien ];
mainProgram = "howl";
# LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
platforms = [ "i686-linux" "x86_64-linux" ];
};
}