Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 862 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitea, 5 cmake, 6}: 7 8stdenv.mkDerivation { 9 pname = "justify"; 10 version = "unstable-2022-03-19"; 11 12 src = fetchFromGitea { 13 domain = "tildegit.org"; 14 owner = "jns"; 15 repo = "justify"; 16 rev = "0d397c20ed921c8e091bf18e548d174e15810e62"; 17 sha256 = "sha256-406OhJt2Ila/LIhfqJXhbFqFxJJiRyMVI4/VK8Y43kc="; 18 }; 19 20 postPatch = '' 21 sed '1i#include <algorithm>' -i src/stringHelper.h # gcc12 22 ''; 23 24 nativeBuildInputs = [ cmake ]; 25 26 installPhase = '' 27 install -D justify $out/bin/justify 28 ''; 29 30 meta = with lib; { 31 homepage = "https://tildegit.org/jns/justify"; 32 description = "Simple text alignment tool that supports left/right/center/fill justify alignment"; 33 license = licenses.gpl3Only; 34 platforms = platforms.unix; 35 mainProgram = "justify"; 36 maintainers = with maintainers; [ xfnw ]; 37 }; 38}