34 lines
661 B
Nix
34 lines
661 B
Nix
|
{
|
||
|
description = "IncDown Parser written in Fennel";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs }:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||
|
in
|
||
|
{
|
||
|
defaultPackage.x86_64-linux = pkgs.stdenv.mkDerivation {
|
||
|
name = "incd";
|
||
|
src = ./.;
|
||
|
buildInputs = [ pkgs.luaPackages.fennel pkgs.fd ];
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/
|
||
|
|
||
|
cp -r ./ $out
|
||
|
'';
|
||
|
};
|
||
|
devShell.x86_64-linux = pkgs.mkShell {
|
||
|
buildInputs = [
|
||
|
pkgs.lua
|
||
|
pkgs.luaPackages.fennel
|
||
|
];
|
||
|
shellHook = ''
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|