forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
klong: init at 20221212 (NixOS#341279)
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3422,6 +3422,12 @@ | |
githubId = 5241813; | ||
name = "Carter Sande"; | ||
}; | ||
casaca = { | ||
name = "J McNutt"; | ||
email = "[email protected]"; | ||
github = "casaca24"; | ||
githubId = 87252279; | ||
}; | ||
casey = { | ||
email = "[email protected]"; | ||
github = "casey"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
]; | ||
}; | ||
} |