nixpkgs/pkgs/by-name/ho/howl/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

40 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }:
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 pkg-config ];
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 = with lib; {
homepage = "https://howl.io/";
description = "General purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
license = licenses.mit;
maintainers = with maintainers; [ pacien ];
mainProgram = "howl";
# LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
platforms = [ "i686-linux" "x86_64-linux" ];
};
}