kczulko / daml-mode-flake

daml-mode nix recipe for emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

daml-mode nix recipe for emacs

License:GNU General Public License v3.0


Languages

Language:Nix 100.0%