From 963c58df5464a50973efebd1827c97e02eeb689b Mon Sep 17 00:00:00 2001 From: Yohann Boniface Date: Sat, 4 Jan 2025 17:11:15 +0100 Subject: [PATCH] ptext: init at 0-unstable-2024-08-19 (#336396) --- pkgs/by-name/pt/ptext/package.nix | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/pt/ptext/package.nix diff --git a/pkgs/by-name/pt/ptext/package.nix b/pkgs/by-name/pt/ptext/package.nix new file mode 100644 index 000000000000..acd675dd5043 --- /dev/null +++ b/pkgs/by-name/pt/ptext/package.nix @@ -0,0 +1,36 @@ +{ + lib, + stdenv, + fetchFromGitHub, +}: + +stdenv.mkDerivation { + pname = "ptext"; + version = "0-unstable-2024-08-19"; + + src = fetchFromGitHub { + owner = "proh14"; + repo = "ptext"; + rev = "86cc1a165f398bd1f08fc45f2db93d4a9701ab0e"; + hash = "sha256-bmqQslC/T7dFJwg/ZCevQRpmkVJHRQ++0EV4b88xF6k="; + }; + + enableParallelBuilding = true; + hardeningDisable = [ "fortify" ]; + + makeFlags = [ + "INSTALL_DIR=${placeholder "out"}/bin" + "MANPAGE_INSTALL_DIR=${placeholder "out"}/share/man/man1" + ]; + + preInstall = "mkdir -p $out/{bin,share/man/man1}"; + + meta = { + description = "Nano like text editor built with pure C"; + homepage = "https://github.com/proh14/ptext"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ sigmanificient ]; + platforms = lib.platforms.linux; + mainProgram = "ptext"; + }; +}