default.nix (903B)
1 { lib, stdenv, fetchFromSourcehut, redo-apenwarr }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "sled"; 5 version = "0.11.11"; 6 7 src = fetchFromSourcehut { 8 owner = "~strahinja"; 9 repo = "sled"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-fR+nITq7gefIFpm6t9b/aL8oaV76w9coGguhKMhpxqQ="; 12 }; 13 14 nativeBuildInputs = [ redo-apenwarr ]; 15 16 buildPhase = '' 17 runHook preBuild 18 export FALLBACKVER=${finalAttrs.version} 19 export FALLBACKDATE=1970-01-01 20 redo all 21 runHook postBuild 22 ''; 23 24 installPhase = '' 25 runHook preInstall 26 PREFIX=$out redo install 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 description = "Simple text editor"; 32 homepage = "https://strahinja.srht.site/sled"; 33 license = licenses.gpl3Plus; 34 maintainers = [ maintainers.sikmir ]; 35 platforms = platforms.linux; 36 skip.ci = stdenv.isDarwin; 37 mainProgram = "sled"; 38 }; 39 })