packaging: build recipes for arch, gentoo, nix, void, fedora

Five distro recipes in packaging/, all following the same recipe:
unpack the Gitea release archive (which extracts to fastwc/), run
autoreconf -fi (the generated configure/Makefile.in are not committed),
configure, make, make install - the binary needs only glibc.

Each recipe notes the release prerequisite: the archive URL requires a
v0.1.0 tag on the remote, and Arch/Nix/Void carry an integrity
placeholder to fill in once the tag exists. The PKGBUILD was validated
with makepkg --printsrcinfo, and the full build recipe was run
end-to-end from a Gitea-layout tarball (autoreconf, configure, make,
make install DESTDIR) producing a working /usr/bin/fastwc.
This commit is contained in:
2026-08-29 18:20:45 -04:00
parent 6ad747dee7
commit f217551448
7 changed files with 199 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
{ 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;
};
})