commit 464aa2fd0c2784e6f60640a86d347cc051737da3
parent ad07f661bb18b014f94eaa8b69bfd420ced4faf7
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Fri, 29 Sep 2023 00:07:16 +0400
Add sled
Diffstat:
2 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -519,6 +519,7 @@ lib.makeScope newScope (
scc = callPackage ./suckless/scc { };
scroll = callPackage ./suckless/scroll { };
se = callPackage ./suckless/se { };
+ sled = callPackage ./suckless/sled { };
sthkd = callPackage ./suckless/sthkd { };
svtm = callPackage ./suckless/svtm { };
}
diff --git a/pkgs/suckless/sled/default.nix b/pkgs/suckless/sled/default.nix
@@ -0,0 +1,38 @@
+{ lib, stdenv, fetchFromSourcehut, redo-apenwarr }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "sled";
+ version = "0.11.8";
+
+ src = fetchFromSourcehut {
+ owner = "~strahinja";
+ repo = "sled";
+ rev = "v${finalAttrs.version}";
+ hash = "sha256-0Qf1Mxe9Q2KuFCs1bOwi8ALHKgFh3BojSoYOEhCquqw=";
+ };
+
+ nativeBuildInputs = [ redo-apenwarr ];
+
+ buildPhase = ''
+ runHook preBuild
+ export FALLBACKVER=${finalAttrs.version}
+ export FALLBACKDATE=1970-01-01
+ redo all
+ runHook postBuild
+ '';
+
+ installPhase = ''
+ runHook preInstall
+ PREFIX=$out redo install
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "Simple text editor";
+ homepage = "https://strahinja.srht.site/sled";
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.linux;
+ skip.ci = stdenv.isDarwin;
+ };
+})