1{ lib
2, stdenv
3, autoPatchelfHook
4, buildDotnetModule
5, dotnetCorePackages
6, fetchFromGitHub
7}:
8
9buildDotnetModule rec {
10 pname = "inklecate";
11 version = "1.0.0";
12
13 src = fetchFromGitHub {
14 owner = "inkle";
15 repo = "ink";
16 rev = "v${version}";
17 sha256 = "00lagmwsbxap5mgnw4gndpavmv3xsgincdaq1zvw7fkc3vn3pxqc";
18 };
19
20 nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
21 buildInputs = [ stdenv.cc.cc.lib ];
22
23 projectFile = "inklecate/inklecate.csproj";
24 nugetDeps = if stdenv.isDarwin then ./deps-darwin.nix else ./deps-linux.nix;
25 executables = [ "inklecate" ];
26
27 dotnet-runtime = dotnetCorePackages.runtime_3_1;
28 dotnet-sdk = dotnetCorePackages.sdk_3_1;
29
30 meta = with lib; {
31 description = "Compiler for ink, inkle's scripting language";
32 longDescription = ''
33 Inklecate is a command-line compiler for ink, inkle's open source
34 scripting language for writing interactive narrative
35 '';
36 homepage = "https://www.inklestudios.com/ink/";
37 downloadPage = "https://github.com/inkle/ink/";
38 license = licenses.mit;
39 platforms = platforms.unix;
40 badPlatforms = platforms.aarch64;
41 maintainers = with maintainers; [ shreerammodi ];
42 };
43}