nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 55 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 makeWrapper, 6 pkg-config, 7 gtk3, 8 librsvg, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "howl"; 13 version = "0.6"; 14 15 # Use the release tarball containing pre-downloaded dependencies sources 16 src = fetchurl { 17 url = "https://github.com/howl-editor/howl/releases/download/${version}/howl-${version}.tgz"; 18 sha256 = "1qc58l3rkr37cj6vhf8c7bnwbz93nscyraz7jxqwjq6k4gj0cjw3"; 19 }; 20 21 sourceRoot = "howl-${version}/src"; 22 23 # The Makefile uses "/usr/local" if not explicitly overridden 24 installFlags = [ "PREFIX=$(out)" ]; 25 26 nativeBuildInputs = [ 27 makeWrapper 28 pkg-config 29 ]; 30 buildInputs = [ 31 gtk3 32 librsvg 33 ]; 34 enableParallelBuilding = true; 35 36 # Required for the program to properly load its SVG assets 37 postInstall = '' 38 wrapProgram $out/bin/howl \ 39 --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" 40 ''; 41 42 meta = with lib; { 43 homepage = "https://howl.io/"; 44 description = "General purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ euxane ]; 47 mainProgram = "howl"; 48 49 # LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively 50 platforms = [ 51 "i686-linux" 52 "x86_64-linux" 53 ]; 54 }; 55}