about summary refs log tree commit diff
path: root/pkgs/by-name/mo/mo/package.nix
blob: 5de0716fde5d0b4961310b8dd5a380f7f7fc8e07 (plain) (blame)
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
33
34
35
36
{ stdenv
, lib
, fetchFromGitHub
, runtimeShell
}:

stdenv.mkDerivation rec {
  pname = "mo";
  version = "3.0.5";

  src = fetchFromGitHub {
    owner = "tests-always-included";
    repo = pname;
    rev = version;
    hash = "sha256-CFAvTpziKzSkdomvCf8PPXYbYcJxjB4EValz2RdD2b0=";
  };

  dontConfigure = true;
  dontBuild = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp mo $out/bin/.

    runHook postInstall
  '';

  meta = with lib; {
    description = "Moustache templates for Bash";
    homepage = "https://github.com/tests-always-included/mo";
    license = licenses.mit;
    maintainers = with maintainers; [ sheepforce ];
  };
}