default.nix (861B)
1 { lib, stdenv, fetchFromSourcehut, redo-apenwarr }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "ste"; 5 version = "0.5"; 6 7 src = fetchFromSourcehut { 8 owner = "~strahinja"; 9 repo = "ste"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-Apa+I9BkkLry5LBjxhmUzAwagLjhBTly1YNJ029jANM="; 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 = "Simple table editor"; 31 homepage = "https://strahinja.srht.site/ste"; 32 license = licenses.gpl3Plus; 33 maintainers = [ maintainers.sikmir ]; 34 platforms = platforms.linux; 35 skip.ci = stdenv.isDarwin; 36 mainProgram = "ste"; 37 }; 38 })