mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-21 22:33:08 +00:00
add nim.nix
This commit is contained in:
parent
8d0cca3b19
commit
5042cda784
33
nix/nim.nix
Normal file
33
nix/nim.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkgconfig
|
||||
, gcc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nim";
|
||||
version = "2.2.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/nim-lang/Nim/archive/refs/tags/v2.2.6.tar.gz";
|
||||
sha256 = "0q27fxky7xh0r5kyldl02dm5rs5pkz96g2sgfgwpxy4v86b6qlpp"; # computed via nix-prefetch-url
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gcc pkgconfig ];
|
||||
|
||||
buildPhase = ''
|
||||
cd $src
|
||||
sh build.sh
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/nim $out/bin/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Official Nim compiler 2.2.6";
|
||||
homepage = "https://nim-lang.org";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user