Since November 2023 daml-(mode|lsp) got published to melpa, which means this repository is being archived.
This repository contains a nix flake description for daml-mode package build based on bartfailt's daml-mode repo.
{
inputs = {
daml-mode.url = "githu:kczulko/daml-mode-flake";
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = { self, nixpkgs, daml-mode, ... }:
let
pkgs = import nixpkgs {
inherit system;
};
emacsWithPackages =
with pkgs; ((emacsPackagesFor emacs).overrideScope' daml-mode.overlays.default).emacsWithPackages;
in {
# ...
environment.systemPackages = [
# ...
(emacsWithPackages (epkgs: [ epkgs.daml-mode ]))
# ...
];
# ...
};
}
This option is not recommended since it's rather a dummy package (build with specific/hardcoded emacs version).
{
inputs.daml-mode.url = "githu:kczulko/daml-mode-flake";
outputs = { self, daml-mode, ... }: {
# ...
environment.systemPackages = [
# ...
(emacs.withPackages (epkgs: [
# ...
daml-mode.packages.x86_64-linux.default
# ...
]))
# ...
];
# ...
};
}