b9d3279034
+ Bumped fennel: 0.8.1 -> 0.9.2. + Use luajit for awesomewm + fennel. + Add barebones awesomewm fennel config (more to come later).
34 lines
795 B
Nix
34 lines
795 B
Nix
{ lib, stdenv, luajit, my, ... }:
|
|
|
|
let name = "fennel";
|
|
version = "0.9.2";
|
|
in stdenv.mkDerivation {
|
|
inherit name version;
|
|
|
|
src = fetchTarball {
|
|
url = "https://fennel-lang.org/downloads/${name}-${version}.tar.gz";
|
|
sha256 = "0p9zr2vb9gq877advb5jvybx6dmqzmxqh4i7yzdr7fwvz7xzd2jv";
|
|
};
|
|
|
|
buildInputs = [
|
|
luajit
|
|
];
|
|
|
|
phases = "installPhase";
|
|
installPhase = ''
|
|
mkdir -p $out $out/bin
|
|
cp $src/fennel $out/bin/fennel
|
|
cp $src/fennel.lua $out/fennel.lua
|
|
chmod +x $out/bin/fennel
|
|
sed -i 's%^#!/usr/bin/env lua$%#!${luajit}/bin/luajit%' $out/bin/fennel
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/bakpakin/Fennel";
|
|
description = "Lua Lisp Language";
|
|
license = lib.licenses.mit;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = [];
|
|
};
|
|
}
|