460af326e4
* inklecate: switch to source release (#154991) Previously, inklecate was downloading an all-in-one release binary directly from Github without patching it, resulting in it not being able to execute on NixOS. Switching to a source-based derivation fixes this problem. * inklecate: fix darwin source build * inklecate: don't build on aarch64 platforms Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, autoPatchelfHook
|
|
, buildDotnetModule
|
|
, dotnetCorePackages
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "inklecate";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inkle";
|
|
repo = "ink";
|
|
rev = "v${version}";
|
|
sha256 = "00lagmwsbxap5mgnw4gndpavmv3xsgincdaq1zvw7fkc3vn3pxqc";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
buildInputs = [ stdenv.cc.cc.lib ];
|
|
|
|
projectFile = "inklecate/inklecate.csproj";
|
|
nugetDeps = if stdenv.isDarwin then ./deps-darwin.nix else ./deps-linux.nix;
|
|
executables = [ "inklecate" ];
|
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_3_1;
|
|
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
|
|
|
meta = with lib; {
|
|
description = "Compiler for ink, inkle's scripting language";
|
|
longDescription = ''
|
|
Inklecate is a command-line compiler for ink, inkle's open source
|
|
scripting language for writing interactive narrative
|
|
'';
|
|
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 ];
|
|
};
|
|
}
|