File: default.nix

package info (click to toggle)
weechat-el 0.5.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 396 kB
  • sloc: lisp: 4,503; makefile: 60
file content (32 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
let
  pkgs = import <nixpkgs> {};
  stdenv = pkgs.stdenv;
in {
  weechat-el = stdenv.mkDerivation rec {
    name = "weechat-el";
    src = ./.;
    
    buildInputs = with pkgs; with pkgs.emacs24Packages; [
      emacs24
      git
      s
      cl-lib
      tracking];

    phases = "unpackPhase buildPhase installPhase testPhase";

    buildPhase = ''
      make package
    '';

    installPhase = ''
      mkdir -p $out
      cp -r * $out/
    '';

    testPhase = ''
      cd $out
      make test
    '';
  };
}