nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 44 lines 914 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, libjpeg 5, libpng 6, ncurses 7, autoreconfHook 8, autoconf-archive 9, pkg-config 10, bash-completion 11}: 12 13stdenv.mkDerivation rec { 14 version = "1.1.1"; 15 pname = "jp2a"; 16 17 src = fetchFromGitHub { 18 owner = "Talinx"; 19 repo = "jp2a"; 20 rev = "v${version}"; 21 sha256 = "sha256-CUyJMVvzXniK5fdZBuWUK9GLSGJyL5Zig49ikGOGRTw="; 22 }; 23 24 makeFlags = [ "PREFIX=$(out)" ]; 25 26 nativeBuildInputs = [ 27 autoreconfHook 28 autoconf-archive 29 pkg-config 30 bash-completion 31 ]; 32 buildInputs = [ libjpeg libpng ncurses ]; 33 34 installFlags = [ "bashcompdir=\${out}/share/bash-completion/completions" ]; 35 36 meta = with lib; { 37 broken = stdenv.isDarwin; 38 homepage = "https://csl.name/jp2a/"; 39 description = "A small utility that converts JPG images to ASCII"; 40 license = licenses.gpl2Only; 41 maintainers = [ maintainers.FlorianFranzen ]; 42 platforms = platforms.unix; 43 }; 44}