diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-24 20:16:23 +0100 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-27 18:10:32 +0100 |
commit | 52d77f2360140152c3d6a72bdb56ae5016ad95ea (patch) | |
tree | d5350d34fe3c615fc28256bf52f9214f22c3bfc6 /pkgs/development/interpreters/kona | |
parent | a00e19ceb96ed8ae2910b009c1ed79dff7167517 (diff) |
kona: reimplement using mkDerivation
Also set supported platforms to `all`, per upstream, and specify license (ISC).
Diffstat (limited to 'pkgs/development/interpreters/kona')
-rw-r--r-- | pkgs/development/interpreters/kona/default.nix | 58 |
1 files changed, 15 insertions, 43 deletions
diff --git a/pkgs/development/interpreters/kona/default.nix b/pkgs/development/interpreters/kona/default.nix index 2a8f7ca2c302c..ab89332046aae 100644 --- a/pkgs/development/interpreters/kona/default.nix +++ b/pkgs/development/interpreters/kona/default.nix @@ -1,50 +1,22 @@ -x@{builderDefsPackage - , fetchgit - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - ["fetchgit"]; +{ stdenv, fetchgit }: - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); -in -rec { - srcDrv = a.fetchgit { +stdenv.mkDerivation rec { + name = "kona-${version}"; + src = fetchgit { url = "https://github.com/kevinlawler/kona.git"; - inherit rev; - sha256 = "a8189c94fca3e62a740eb6823ab3fc571c0960ff5e7a3eb0353e5cf36ef9fdcb"; + rev = "81e95b395144f4b02fe8782ad87c1f218b511c43"; + sha256 = "1jzxz5pg6p1y6nq3wyjyzxh0j72pzjrkm0mn1rs2mrm3zja9q658"; }; + version = "git-${src.rev}"; - src = "${srcDrv}/"; - - rev = "81e95b395144f4b02fe8782ad87c1f218b511c43"; - version = "git-${rev}"; - name = "kona-${version}"; - inherit buildInputs; - - /* doConfigure should be removed if not needed */ - phaseNames = ["prepareOut" "doMakeInstall"]; - makeFlags = ["PREFIX=\$out"]; - - prepareOut = a.fullDepEntry '' - mkdir -p "$out/bin" - '' ["minInit" "defEnsureDir"]; + makeFlags = "PREFIX=$(out)"; + preInstall = ''mkdir -p "$out/bin"''; - meta = { + meta = with stdenv.lib; { description = "An interpreter of K, APL-like programming language"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; - license = a.lib.licenses.free; - }; - passthru = { - updateInfo = { - downloadPage = "https://github.com/kevinlawler/kona"; - }; + homepage = https://github.com/kevinlawler/kona/; + maintainers = with maintainers; [ raskin ]; + platforms = platforms.all; + license = licenses.isc; }; -}) x +} |