Files
2026-07-25 19:48:13 -04:00

39 lines
866 B
Nix

{
lib,
stdenv,
fetchFromGitea,
cmake,
}:
stdenv.mkDerivation {
pname = "justify";
version = "0-unstable-2022-03-19";
src = fetchFromGitea {
domain = "tildegit.org";
owner = "jns";
repo = "justify";
rev = "0d397c20ed921c8e091bf18e548d174e15810e62";
sha256 = "sha256-406OhJt2Ila/LIhfqJXhbFqFxJJiRyMVI4/VK8Y43kc=";
};
postPatch = ''
sed '1i#include <algorithm>' -i src/stringHelper.h # gcc12
'';
nativeBuildInputs = [ cmake ];
installPhase = ''
install -D justify $out/bin/justify
'';
meta = {
homepage = "https://tildegit.org/jns/justify";
description = "Simple text alignment tool that supports left/right/center/fill justify alignment";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.unix;
mainProgram = "justify";
maintainers = with lib.maintainers; [ xfnw ];
};
}