2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
sourceRoot = "howl-${version}/src";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# The Makefile uses "/usr/local" if not explicitly overridden
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://howl.io/";
|
|
|
|
description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ pacien ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "howl";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|