home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 58df0746831bf85d5018922b3ba87427c8076f0a
parent cd55052ad8ee43a80cf75886dbbd39433d18a323
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 16 Aug 2018 11:35:08 +0200

Add emacs-scripts for emacs helper scripts…

… this mainly re-instate `et` and `ec` wrappers.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Memacs.nix | 1+
Moverlays/sbr.nix | 3+++
Mpkgs/default.nix | 3+++
Apkgs/emacs-scripts/builder.sh | 4++++
Apkgs/emacs-scripts/default.nix | 7+++++++
Apkgs/emacs-scripts/ec | 3+++
Apkgs/emacs-scripts/et | 3+++
7 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/emacs.nix b/emacs.nix @@ -1,6 +1,7 @@ { pkgs, config, lib, ... }: { + home.packages = with pkgs; [ emacs-scripts ]; programs.emacs = { enable = true; #package = pkgs.myEmacs; diff --git a/overlays/sbr.nix b/overlays/sbr.nix @@ -6,6 +6,9 @@ self: super: dobi = import ../pkgs/dobi { inherit (super) stdenv lib buildGoPackage fetchFromGitHub; }; + emacs-scripts = import ../pkgs/emacs-scripts { + inherit (super) stdenv; + }; envbox = import ../pkgs/envbox { inherit (super) stdenv lib buildGoPackage fetchFromGitHub; }; diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -9,6 +9,9 @@ in rec { dobi = import ./dobi { inherit (pkgs) stdenv lib fetchFromGitHub buildGoPackage; }; + emacs-scripts = import ./emacs-scripts { + inherit (pkgs) stdenv; + }; envbox = import ./envbox { inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub; }; diff --git a/pkgs/emacs-scripts/builder.sh b/pkgs/emacs-scripts/builder.sh @@ -0,0 +1,4 @@ +source $stdenv/setup + +mkdir -p $out/bin +cp $src/e* $out/bin/ diff --git a/pkgs/emacs-scripts/default.nix b/pkgs/emacs-scripts/default.nix @@ -0,0 +1,7 @@ +{ stdenv }: + +stdenv.mkDerivation { + name = "emacs-scripts-0.1"; + builder = ./builder.sh; + src = ./.; +} diff --git a/pkgs/emacs-scripts/ec b/pkgs/emacs-scripts/ec @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +emacsclient --create-frame $@+ \ No newline at end of file diff --git a/pkgs/emacs-scripts/et b/pkgs/emacs-scripts/et @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +emacsclient --tty $@+ \ No newline at end of file