{ lib, stdenv, fetchFromGitea, autoconf, automake, libtool }: stdenv.mkDerivation (finalAttrs: { pname = "fastwc"; version = "0.1.0"; src = fetchFromGitea { domain = "git.spectoria.dev"; owner = "huntedbytheirs"; repo = "fastwc"; # requires a v0.1.0 tag on the Gitea remote; the fake hash makes the # first build fail with the real one printed - drop it in, then rebuild rev = "v${finalAttrs.version}"; hash = lib.fakeHash; }; nativeBuildInputs = [ autoconf automake libtool ]; preConfigure = '' autoreconf -fi ''; meta = with lib; { description = "A wc replacement that beats GNU wc - SIMD kernels, mmap, threads"; homepage = "https://git.spectoria.dev/huntedbytheirs/fastwc"; license = licenses.mit; platforms = platforms.linux; }; })