32 lines
679 B
Nix
32 lines
679 B
Nix
{
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-22.11";
|
|
|
|
outputs = { self, nixpkgs }: let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
apps.${system} = let
|
|
toApp = _: pkg: {
|
|
type = "app";
|
|
program = toString pkg;
|
|
};
|
|
in {
|
|
default = {
|
|
type = "app";
|
|
program = toString (pkgs.writeScript "reveal-md-tdt4310-project" ''
|
|
${pkgs.nodePackages.reveal-md}/bin/reveal-md main.md
|
|
'');
|
|
};
|
|
};
|
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
nodePackages.reveal-md
|
|
# inkscape
|
|
# gimp
|
|
# drawio
|
|
];
|
|
};
|
|
};
|
|
}
|