Files
nixpkgs/pkgs/by-name/in/inko/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

77 lines
1.4 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
llvm,
libffi,
libz,
libxml2,
ncurses,
stdenv,
makeWrapper,
callPackage,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "inko";
version = "0.18.1";
src = fetchFromGitHub {
owner = "inko-lang";
repo = "inko";
tag = "v${finalAttrs.version}";
hash = "sha256-jVfAfR02R2RaTtzFSBoLuq/wdPaaI/eochrZaRVdmHY=";
};
cargoHash = "sha256-IOMhwcZHB5jVYDM65zifxCjVHWl1EBbxNA3WVmarWcs=";
buildInputs = [
libffi
libz
libxml2
ncurses
(lib.getLib stdenv.cc.cc)
];
nativeBuildInputs = [
llvm
makeWrapper
];
env = {
INKO_STD = "${placeholder "out"}/lib";
INKO_RT = "${placeholder "out"}/lib/runtime";
};
postFixup = ''
wrapProgram $out/bin/inko \
--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}
'';
postInstall = ''
mkdir -p $out/lib/runtime
mv $out/lib/*.a $out/lib/runtime/
cp -r std/src/* $out/lib/
'';
passthru = {
updateScript = nix-update-script { };
tests = {
simple = callPackage ./test.nix { };
};
};
__darwinAllowLocalNetworking = true;
meta = {
description = "Language for building concurrent software with confidence";
homepage = "https://inko-lang.org/";
license = lib.licenses.mpl20;
maintainers = [ lib.maintainers.feathecutie ];
teams = [ lib.teams.ngi ];
platforms = lib.platforms.unix;
mainProgram = "inko";
};
})