diff options
author | pacien <pacien.trangirard@pacien.net> | 2018-10-06 20:40:33 +0200 |
---|---|---|
committer | pacien <pacien.trangirard@pacien.net> | 2018-10-08 00:28:57 +0200 |
commit | 6cc84ed1e484bec93d8de0478f92a9b602f947a5 (patch) | |
tree | 8d53165c0088e8a5b1a49bca3b2e2890f7a193c0 /pkgs/applications/editors | |
parent | a959bd928a7557cb74f2e830fcd04749174798e6 (diff) | |
download | nixlib-6cc84ed1e484bec93d8de0478f92a9b602f947a5.tar nixlib-6cc84ed1e484bec93d8de0478f92a9b602f947a5.tar.gz nixlib-6cc84ed1e484bec93d8de0478f92a9b602f947a5.tar.bz2 nixlib-6cc84ed1e484bec93d8de0478f92a9b602f947a5.tar.lz nixlib-6cc84ed1e484bec93d8de0478f92a9b602f947a5.tar.xz nixlib-6cc84ed1e484bec93d8de0478f92a9b602f947a5.tar.zst nixlib-6cc84ed1e484bec93d8de0478f92a9b602f947a5.zip |
howl: init at 0.5.3
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/howl/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/editors/howl/default.nix b/pkgs/applications/editors/howl/default.nix new file mode 100644 index 000000000000..8f75eda7ef70 --- /dev/null +++ b/pkgs/applications/editors/howl/default.nix @@ -0,0 +1,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" ]; + }; +} + |