commit 215c063f3d172e88ae24d32ba7c2acb3e38187a7
parent 464aa2fd0c2784e6f60640a86d347cc051737da3
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Fri, 29 Sep 2023 21:55:06 +0400
Add dtree,ste,table
Diffstat:
4 files changed, 114 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -494,6 +494,7 @@ lib.makeScope newScope (
chibicc = callPackage ./suckless/chibicc { };
cproc = callPackage ./suckless/cproc { };
dragon = callPackage ./suckless/dragon { };
+ dtree = callPackage ./suckless/dtree { };
edit = callPackage ./suckless/edit { };
farbfeld-utils = callPackage ./suckless/farbfeld-utils { };
ff-tools = callPackage ./suckless/ff-tools { };
@@ -520,7 +521,9 @@ lib.makeScope newScope (
scroll = callPackage ./suckless/scroll { };
se = callPackage ./suckless/se { };
sled = callPackage ./suckless/sled { };
+ ste = callPackage ./suckless/ste { };
sthkd = callPackage ./suckless/sthkd { };
svtm = callPackage ./suckless/svtm { };
+ table = callPackage ./suckless/table { };
}
)
diff --git a/pkgs/suckless/dtree/default.nix b/pkgs/suckless/dtree/default.nix
@@ -0,0 +1,37 @@
+{ lib, stdenv, fetchFromSourcehut, redo-apenwarr }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "dtree";
+ version = "0.1.2";
+
+ src = fetchFromSourcehut {
+ owner = "~strahinja";
+ repo = "dtree";
+ rev = "v${finalAttrs.version}";
+ hash = "sha256-6pkROKCwdF0Wm6AlnJtKwAmdOTTjtq5qmfrSmTBDGzI=";
+ };
+
+ nativeBuildInputs = [ redo-apenwarr ];
+
+ buildPhase = ''
+ runHook preBuild
+ export FALLBACKVER=${finalAttrs.version}
+ redo all
+ runHook postBuild
+ '';
+
+ installPhase = ''
+ runHook preInstall
+ PREFIX=$out redo install
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "Command line program to draw trees";
+ homepage = "https://strahinja.srht.site/dtree";
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.linux;
+ skip.ci = stdenv.isDarwin;
+ };
+})
diff --git a/pkgs/suckless/ste/default.nix b/pkgs/suckless/ste/default.nix
@@ -0,0 +1,37 @@
+{ lib, stdenv, fetchFromSourcehut, redo-apenwarr }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "ste";
+ version = "0.3.3";
+
+ src = fetchFromSourcehut {
+ owner = "~strahinja";
+ repo = "ste";
+ rev = "v${finalAttrs.version}";
+ hash = "sha256-82XTVe3ayPKm0sZ/PSMNkBdoYBSLygWB/JBClXWq4r8=";
+ };
+
+ nativeBuildInputs = [ redo-apenwarr ];
+
+ buildPhase = ''
+ runHook preBuild
+ export FALLBACKVER=${finalAttrs.version}
+ redo all
+ runHook postBuild
+ '';
+
+ installPhase = ''
+ runHook preInstall
+ PREFIX=$out redo install
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "Simple table editor";
+ homepage = "https://strahinja.srht.site/ste";
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.linux;
+ skip.ci = stdenv.isDarwin;
+ };
+})
diff --git a/pkgs/suckless/table/default.nix b/pkgs/suckless/table/default.nix
@@ -0,0 +1,37 @@
+{ lib, stdenv, fetchFromSourcehut, redo-apenwarr }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "table";
+ version = "0.6.20";
+
+ src = fetchFromSourcehut {
+ owner = "~strahinja";
+ repo = "table";
+ rev = "v${finalAttrs.version}";
+ hash = "sha256-/jciHyZgJby89W3/oPgaJPqT8K74ir47feywbwmGb0I=";
+ };
+
+ nativeBuildInputs = [ redo-apenwarr ];
+
+ buildPhase = ''
+ runHook preBuild
+ export FALLBACKVER=${finalAttrs.version}
+ redo all
+ runHook postBuild
+ '';
+
+ installPhase = ''
+ runHook preInstall
+ PREFIX=$out redo install
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "Command line utility to format and display CSV";
+ homepage = "https://strahinja.srht.site/table";
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.linux;
+ skip.ci = stdenv.isDarwin;
+ };
+})