commit 3dcd73a6a4ddc4a0985ca875b5dbdad45f3b06a6
parent afac4383c148da38ff7d198514510915de152a74
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Wed, 27 Sep 2023 21:09:19 +0400
Add edit
Diffstat:
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -493,6 +493,7 @@ lib.makeScope newScope (
chibicc = callPackage ./suckless/chibicc { };
cproc = callPackage ./suckless/cproc { };
dragon = callPackage ./suckless/dragon { };
+ edit = callPackage ./suckless/edit { };
farbfeld-utils = callPackage ./suckless/farbfeld-utils { };
ff-tools = callPackage ./suckless/ff-tools { };
ffshot = callPackage ./suckless/ffshot { };
diff --git a/pkgs/suckless/edit/default.nix b/pkgs/suckless/edit/default.nix
@@ -0,0 +1,28 @@
+{ lib, stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "edit";
+ version = "0.3.2";
+
+ src = fetchFromGitHub {
+ owner = "arthur-jacquin";
+ repo = "edit";
+ rev = "db569efc2a3460591a44b7144769857292bdbe88";
+ hash = "sha256-q2E/XWARm6aek6E81fOb9gOpumEWxmtB1Ni5hHoQOkY=";
+ };
+
+ postPatch = ''
+ substituteInPlace config.mk \
+ --replace "LDFLAGS" "#LDFLAGS"
+ '';
+
+ installFlags = [ "PREFIX=$(out)" ];
+
+ meta = with lib; {
+ description = "A suckless, simple, featured text editor";
+ inherit (finalAttrs.src.meta) homepage;
+ license = licenses.gpl3;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+})