Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Latest commit

 

History

History
64 lines (50 loc) · 1.4 KB

README.md

File metadata and controls

64 lines (50 loc) · 1.4 KB

OBSOLETE

Since November 2023 daml-(mode|lsp) got published to melpa, which means this repository is being archived.

nix recipe for emacs' daml-mode

This repository contains a nix flake description for daml-mode package build based on bartfailt's daml-mode repo.

usage

via overlay (recommended)

{
  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 ]))
        # ...
      ];
      # ...
    };
}

via flake output

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
          # ...
        ]))
        # ...
      ];
      # ...
    };
}