2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }:
|
2018-10-06 19:40:33 +01:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2018-10-06 19:40:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "howl";
|
2019-05-09 05:12:35 +01:00
|
|
|
version = "0.6";
|
2018-10-06 19:40:33 +01:00
|
|
|
|
|
|
|
# Use the release tarball containing pre-downloaded dependencies sources
|
|
|
|
src = fetchurl {
|
2019-05-09 05:12:35 +01:00
|
|
|
url = "https://github.com/howl-editor/howl/releases/download/${version}/howl-${version}.tgz";
|
|
|
|
sha256 = "1qc58l3rkr37cj6vhf8c7bnwbz93nscyraz7jxqwjq6k4gj0cjw3";
|
2018-10-06 19:40:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "./howl-${version}/src";
|
|
|
|
|
|
|
|
# The Makefile uses "/usr/local" if not explicitly overridden
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper pkg-config ];
|
2018-10-06 19:40:33 +01: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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://howl.io/";
|
2018-10-06 19:40:33 +01:00
|
|
|
description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ pacien ];
|
|
|
|
|
|
|
|
# LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|