@@ -0,0 +1,40 @@
1+{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk3, librsvg }:
2+
3+with stdenv.lib;
4+
5+stdenv.mkDerivation rec {
6+ name = "howl-${version}";
7+ version = "0.5.3";
8+
9+ # Use the release tarball containing pre-downloaded dependencies sources
10+ src = fetchurl {
11+ url = "https://github.com/howl-editor/howl/releases/download/0.5.3/howl-0.5.3.tgz";
12+ sha256 = "0gnc8vr5h8mwapbcqc1zr9la62rb633awyqgy8q7pwjpiy85a03v";
13+ };
14+
15+ sourceRoot = "./howl-${version}/src";
16+
17+ # The Makefile uses "/usr/local" if not explicitly overridden
18+ installFlags = [ "PREFIX=$(out)" ];
19+
20+ nativeBuildInputs = [ makeWrapper pkgconfig ];
21+ buildInputs = [ gtk3 librsvg ];
22+ enableParallelBuilding = true;
23+
24+ # Required for the program to properly load its SVG assets
25+ postInstall = ''
26+ wrapProgram $out/bin/howl \
27+ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
28+ '';
29+
30+ meta = {
31+ homepage = https://howl.io/;
32+ description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
33+ license = licenses.mit;
34+ maintainers = with maintainers; [ pacien ];
35+
36+ # LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
37+ platforms = [ "i686-linux" "x86_64-linux" ];
38+ };
39+}
40+