default.nix (899B)
1 { lib, stdenv, fetchFromSourcehut, redo-apenwarr }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "table"; 5 version = "0.6.22"; 6 7 src = fetchFromSourcehut { 8 owner = "~strahinja"; 9 repo = "table"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-xN8U/5hgM/vmfxJ+jpTRyFY5TKxNDPtritVBaJr3L1I="; 12 }; 13 14 nativeBuildInputs = [ redo-apenwarr ]; 15 16 buildPhase = '' 17 runHook preBuild 18 export FALLBACKVER=${finalAttrs.version} 19 redo all 20 runHook postBuild 21 ''; 22 23 installPhase = '' 24 runHook preInstall 25 PREFIX=$out redo install 26 runHook postInstall 27 ''; 28 29 meta = with lib; { 30 description = "Command line utility to format and display CSV"; 31 homepage = "https://strahinja.srht.site/table"; 32 license = licenses.gpl3Plus; 33 maintainers = [ maintainers.sikmir ]; 34 platforms = platforms.linux; 35 skip.ci = stdenv.isDarwin; 36 mainProgram = "table"; 37 }; 38 })