1 { lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }:
3 stdenv.mkDerivation rec {
7 # Use the release tarball containing pre-downloaded dependencies sources
9 url = "https://github.com/howl-editor/howl/releases/download/${version}/howl-${version}.tgz";
10 sha256 = "1qc58l3rkr37cj6vhf8c7bnwbz93nscyraz7jxqwjq6k4gj0cjw3";
13 sourceRoot = "howl-${version}/src";
15 # The Makefile uses "/usr/local" if not explicitly overridden
16 installFlags = [ "PREFIX=$(out)" ];
18 nativeBuildInputs = [ makeWrapper pkg-config ];
19 buildInputs = [ gtk3 librsvg ];
20 enableParallelBuilding = true;
22 # Required for the program to properly load its SVG assets
24 wrapProgram $out/bin/howl \
25 --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
29 homepage = "https://howl.io/";
30 description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
31 license = licenses.mit;
32 maintainers = with maintainers; [ pacien ];
35 # LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
36 platforms = [ "i686-linux" "x86_64-linux" ];