nix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadey Ratio 2020-02-01 21:45:59 +00:00
parent e8e56dc1d1
commit a0a64394bb
3 changed files with 32 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
eval "$(lorri direnv)"

23
default.nix Normal file
View File

@ -0,0 +1,23 @@
{ pkgs ? import <nixpkgs> { }
, stdenv ? pkgs.stdenv
, fetchurl ? pkgs.fetchurl
, buildLuarocksPackage ? pkgs.lua53Packages.buildLuarocksPackage
, luaOlder ? pkgs.luaPackages.luaOlder
, luaAtLeast ? pkgs.luaPackages.luaAtLeast, ... }:
with pkgs;
buildLuarocksPackage {
pname = "ln";
version = "0.2.0";
src = fetchurl {
url = "https://luarocks.org/manifests/xe/ln-0.2.0-1.src.rock";
sha256 = "0ff0139d8fkyp35csfs75b1jn9q37v5y35wzml82ff35k0sgwkam";
};
propagatedBuildInputs = [ lua5_3 ];
disabled = (luaOlder "5.2") || (luaAtLeast "5.4");
meta = {
homepage = "https://tulpa.dev/cadey/lua-ln";
};
buildInputs = [ luaPackages.dkjson ];
}

8
shell.nix Normal file
View File

@ -0,0 +1,8 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
buildInputs = [
(pkgs.luajit.withPackages(ps: with ps; [ busted dkjson ]))
];
}