nixpkgs/pkgs/by-name/iv/ivm/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.0 KiB
Nix
Raw Normal View History

2024-07-06 17:48:18 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, makeWrapper
, cargo
, llvm_16
, stdenv
, libffi
, libz
, libxml2
, ncurses
}:
rustPlatform.buildRustPackage rec {
pname = "ivm";
version = "0.5.0";
src = fetchFromGitHub {
owner = "inko-lang";
repo = "ivm";
rev = "v${version}";
hash = "sha256-z0oo1JUZbX3iT8N9+14NcqUzalpARImcbtUiQYS4djA=";
};
cargoHash = "sha256-EP3fS4lAGOaXJXAM22ZCn4+9Ah8TM1+wvNerKCKByo0=";
buildInputs = [
stdenv.cc.cc.lib
];
nativeBuildInputs = [
makeWrapper
];
postFixup = ''
wrapProgram $out/bin/ivm \
--prefix PATH : ${lib.makeBinPath [ cargo llvm_16.dev stdenv.cc ]} \
--prefix LIBRARY_PATH : ${lib.makeLibraryPath [
libffi
libz
libxml2
ncurses
]}
'';
meta = {
description = "Cross-platform Inko version manager";
homepage = "https://github.com/inko-lang/ivm";
license = lib.licenses.mpl20;
maintainers = [ lib.maintainers.feathecutie ];
platforms = lib.platforms.unix;
mainProgram = "ivm";
};
}