nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 52 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, autoreconfHook 5, pkg-config 6, libconfuse 7, libxcrypt 8, testers 9, merecat 10, nixosTests 11}: 12 13stdenv.mkDerivation rec { 14 pname = "merecat"; 15 version = "2.31"; 16 17 # Or, already reconf'd: ftp://ftp.troglobit.com/merecat/merecat-${version}.tar.xz 18 src = fetchFromGitHub { 19 owner = "troglobit"; 20 repo = "merecat"; 21 rev = "v${version}"; 22 hash = "sha256-oIzOXUnCFqd3HPyKp58r+enRRpaE7f9hqNITtxCCB7I="; 23 }; 24 25 nativeBuildInputs = [ 26 autoreconfHook 27 pkg-config 28 ]; 29 30 buildInputs = [ 31 libconfuse 32 libxcrypt 33 ]; 34 35 passthru.tests = { 36 testVersion = testers.testVersion { 37 package = merecat; 38 command = "merecat -V"; 39 }; 40 inherit (nixosTests) merecat; 41 }; 42 43 meta = with lib; { 44 description = "Small and made-easy HTTP/HTTPS server based on Jef Poskanzer's thttpd"; 45 homepage = "https://troglobit.com/projects/merecat/"; 46 license = licenses.bsd2; 47 maintainers = with maintainers; [ fgaz ]; 48 platforms = platforms.all; 49 # Strange header and/or linker errors 50 broken = stdenv.isDarwin; 51 }; 52}