1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/applications/editors/howl/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

41 lines
1.2 KiB
Nix

{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk3, librsvg }:
with stdenv.lib;
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";
};
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" ];
};
}