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

kczulko/daml-mode-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages