From 9e4efdd76b3afadc1e1253271ba6765f2670123c Mon Sep 17 00:00:00 2001 From: casaca <87252279+casaca24@users.noreply.github.com> Date: Fri, 20 Sep 2024 22:28:43 +0000 Subject: [PATCH 1/2] klong: init at 20221212 --- pkgs/by-name/kl/klong/package.nix | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 pkgs/by-name/kl/klong/package.nix diff --git a/pkgs/by-name/kl/klong/package.nix b/pkgs/by-name/kl/klong/package.nix new file mode 100644 index 0000000000000..e5ffb916dfd8d --- /dev/null +++ b/pkgs/by-name/kl/klong/package.nix @@ -0,0 +1,61 @@ +{ + lib, + stdenv, + fetchurl, + fetchFromSourcehut, + installShellFiles, + makeBinaryWrapper, + gv, +}: + +stdenv.mkDerivation rec { + pname = "klong"; + version = "20221212"; + + src = fetchurl { + url = "https://t3x.org/klong/klong${version}.tgz"; + hash = "sha256-XhpIdyKKPGQ6mdv9LXPmC8P6hW4mFawv54yANw5/lrQ="; + }; + + docs = fetchFromSourcehut { + owner = "~nut"; + repo = "klong-docs"; + rev = "350da558709e3728df60ddf45fafe09e3fb89139"; + hash = "sha256-yfvXljjJwCETWPa70zXhaQJOHhZYR2k+BKAd0Dw/U70="; + }; + + nativeBuildInputs = [ + makeBinaryWrapper + installShellFiles + ]; + + installPhase = '' + runHook preInstall + install -m 555 -Dt $out/bin kg kplot + install -m 444 -Dt $out/lib/klong lib/*.kg + runHook postInstall + ''; + + postInstall = '' + wrapProgram $out/bin/kg --prefix KLONGPATH : $out/lib/klong + wrapProgram $out/bin/kplot --prefix PATH : ${ + lib.makeBinPath [ + "$out" + gv + ] + } + installManPage $docs/*.1 + ''; + + meta = { + description = "Simple Array programming language"; + homepage = "https://t3x.org/klong"; + mainProgram = "kg"; + maintainers = [ lib.maintainers.casaca ]; + platforms = lib.platforms.all; + license = with lib.licenses; [ + publicDomain + cc0 + ]; + }; +} From d073ded13384bd75dce5d2d3685d426f688c7821 Mon Sep 17 00:00:00 2001 From: casaca <87252279+casaca24@users.noreply.github.com> Date: Fri, 20 Sep 2024 22:28:43 +0000 Subject: [PATCH 2/2] maintainers: add casaca --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f51ca37ecf9af..b5984717d437f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3422,6 +3422,12 @@ githubId = 5241813; name = "Carter Sande"; }; + casaca = { + name = "J McNutt"; + email = "jmacasac@hotmail.com"; + github = "casaca24"; + githubId = 87252279; + }; casey = { email = "casey@rodarmor.net"; github = "casey";