2022-01-19 11:14:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoPatchelfHook
|
|
|
|
, buildDotnetModule
|
|
|
|
, dotnetCorePackages
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
2021-07-08 01:54:53 +01:00
|
|
|
pname = "inklecate";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
2022-01-19 11:14:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inkle";
|
|
|
|
repo = "ink";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "00lagmwsbxap5mgnw4gndpavmv3xsgincdaq1zvw7fkc3vn3pxqc";
|
|
|
|
};
|
2021-07-08 01:54:53 +01:00
|
|
|
|
2022-03-22 17:59:05 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
|
2022-01-19 11:14:59 +00:00
|
|
|
buildInputs = [ stdenv.cc.cc.lib ];
|
2021-07-08 01:54:53 +01:00
|
|
|
|
2022-01-19 11:14:59 +00:00
|
|
|
projectFile = "inklecate/inklecate.csproj";
|
|
|
|
nugetDeps = if stdenv.isDarwin then ./deps-darwin.nix else ./deps-linux.nix;
|
|
|
|
executables = [ "inklecate" ];
|
2021-07-08 01:54:53 +01:00
|
|
|
|
2022-01-19 11:14:59 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_3_1;
|
2022-07-15 15:54:06 +01:00
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_3_1;
|
2021-07-08 01:54:53 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-01-19 11:14:59 +00:00
|
|
|
description = "Compiler for ink, inkle's scripting language";
|
2021-07-08 01:54:53 +01:00
|
|
|
longDescription = ''
|
|
|
|
Inklecate is a command-line compiler for ink, inkle's open source
|
|
|
|
scripting language for writing interactive narrative
|
2022-01-19 11:14:59 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://www.inklestudios.com/ink/";
|
|
|
|
downloadPage = "https://github.com/inkle/ink/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
badPlatforms = platforms.aarch64;
|
|
|
|
maintainers = with maintainers; [ shreerammodi ];
|
2021-07-08 01:54:53 +01:00
|
|
|
};
|
|
|
|
}
|