biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / editors / howl / default.nix
blob9406604413c4df8054eccd88706f4bf930def2e9
1 { lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }:
3 stdenv.mkDerivation rec {
4   pname = "howl";
5   version = "0.6";
7   # Use the release tarball containing pre-downloaded dependencies sources
8   src = fetchurl {
9     url = "https://github.com/howl-editor/howl/releases/download/${version}/howl-${version}.tgz";
10     sha256 = "1qc58l3rkr37cj6vhf8c7bnwbz93nscyraz7jxqwjq6k4gj0cjw3";
11   };
13   sourceRoot = "howl-${version}/src";
15   # The Makefile uses "/usr/local" if not explicitly overridden
16   installFlags = [ "PREFIX=$(out)" ];
18   nativeBuildInputs = [ makeWrapper pkg-config ];
19   buildInputs = [ gtk3 librsvg ];
20   enableParallelBuilding = true;
22   # Required for the program to properly load its SVG assets
23   postInstall = ''
24     wrapProgram $out/bin/howl \
25       --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
26   '';
28   meta = with lib; {
29     homepage = "https://howl.io/";
30     description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
31     license = licenses.mit;
32     maintainers = with maintainers; [ pacien ];
33     mainProgram = "howl";
35     # LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
36     platforms = [ "i686-linux" "x86_64-linux" ];
37   };