Merge pull request #7035 from joachifm/reimplement-kona
Reimplement kona
This commit is contained in:
commit
91eaf5495f
@ -1,50 +1,21 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl }:
|
||||||
, fetchgit
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
["fetchgit"];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
srcDrv = a.fetchgit {
|
|
||||||
url = "https://github.com/kevinlawler/kona.git";
|
|
||||||
inherit rev;
|
|
||||||
sha256 = "a8189c94fca3e62a740eb6823ab3fc571c0960ff5e7a3eb0353e5cf36ef9fdcb";
|
|
||||||
};
|
|
||||||
|
|
||||||
src = "${srcDrv}/";
|
|
||||||
|
|
||||||
rev = "81e95b395144f4b02fe8782ad87c1f218b511c43";
|
|
||||||
version = "git-${rev}";
|
|
||||||
name = "kona-${version}";
|
name = "kona-${version}";
|
||||||
inherit buildInputs;
|
version = "3.21";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/kevinlawler/kona/archive/Win.${version}-64.tar.gz";
|
||||||
|
sha256 = "0c1yf3idqkfq593xgqb25r2ykmfmp83zzh3q7kb8095a069gvri3";
|
||||||
|
};
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
makeFlags = "PREFIX=$(out)";
|
||||||
phaseNames = ["prepareOut" "doMakeInstall"];
|
preInstall = ''mkdir -p "$out/bin"'';
|
||||||
makeFlags = ["PREFIX=\$out"];
|
|
||||||
|
|
||||||
prepareOut = a.fullDepEntry ''
|
meta = with stdenv.lib; {
|
||||||
mkdir -p "$out/bin"
|
|
||||||
'' ["minInit" "defEnsureDir"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "An interpreter of K, APL-like programming language";
|
description = "An interpreter of K, APL-like programming language";
|
||||||
maintainers = with a.lib.maintainers;
|
homepage = https://github.com/kevinlawler/kona/;
|
||||||
[
|
maintainers = with maintainers; [ raskin ];
|
||||||
raskin
|
platforms = platforms.all;
|
||||||
];
|
license = licenses.isc;
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.free;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "https://github.com/kevinlawler/kona";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user