incd-parser/flake.nix

34 lines
661 B
Nix
Raw Permalink Normal View History

2023-11-27 23:36:16 -08:00
{
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 = ''
'';
};
};
}