-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
36 lines (29 loc) · 917 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, lib, libgccjit, autoPatchelfHook, fetchzip }:
stdenv.mkDerivation rec {
name = "stanza";
version = "0.18.22";
otherver = builtins.replaceStrings ["."] ["_"] version;
src = fetchzip {
url = "https://github.com/StanzaOrg/lbstanza/releases/download/${version}/lstanza_${otherver}.zip";
sha256 = "sha256-LJC+GfBhiIkZyg/6c/oXKxO1YWT2Eub3fJh/8QVbamw=";
stripRoot = false;
};
sourceRoot = ".";
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
libgccjit
stdenv.cc.cc.lib
];
installPhase = ''
install -Dm755 $src/stanza $out/bin/stanza
'';
meta = with lib; {
homepage = https://lbstanza.org/;
description = "The Stanza programming language";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ hypadr1v3 ];
};
}