ivm: init at 0.5.0
This commit is contained in:
parent
a38953fa13
commit
bd3215c582
54
pkgs/by-name/iv/ivm/package.nix
Normal file
54
pkgs/by-name/iv/ivm/package.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user