blob: 8f75eda7ef705eae63274d9d6ea1fb943d154571 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk3, librsvg }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "howl-${version}";
version = "0.5.3";
# Use the release tarball containing pre-downloaded dependencies sources
src = fetchurl {
url = "https://github.com/howl-editor/howl/releases/download/0.5.3/howl-0.5.3.tgz";
sha256 = "0gnc8vr5h8mwapbcqc1zr9la62rb633awyqgy8q7pwjpiy85a03v";
};
sourceRoot = "./howl-${version}/src";
# The Makefile uses "/usr/local" if not explicitly overridden
installFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ makeWrapper pkgconfig ];
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 = {
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 ];
# LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
platforms = [ "i686-linux" "x86_64-linux" ];
};
}
|