summaryrefslogtreecommitdiff
path: root/pkgs/mommy.nix
blob: c8938e95f3c4ea2b3cf3ed3bf0b9cbbc4af402eb (plain)
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
37
38
39
40
41
42
43
44
45
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  gnumake,
  man-db,
  shellspec,
  ...
}: let
  inherit (lib) licenses maintainers platforms;
in
  stdenvNoCC.mkDerivation rec {
    pname = "mommy";
    version = "1.2.4";

    src = fetchFromGitHub {
      owner = "FWDekker";
      repo = pname;
      rev = "v${version}";
      sha256 = "sha256-SqWhbhQeRUO0cD9Fv/nwKjTI3F0Sg2VhFZtrbyA9Wb4=";
    };

    checkInputs = [man-db shellspec];
    nativeBuildInputs = [gnumake];

    checkPhase = ''
      make test/unit
    '';

    installPhase = ''
      make prefix=$out install
    '';

    meta = {
      description = "mommy's here to support you, in any shell, on any system~";
      longDescription = ''
        mommy's here to support you! mommy will compliment you if things go well,
        and will encourage you if things are not going so well~
      '';
      homepage = "https://github.com/FWDekker/mommy";
      license = licenses.unlicense;
      maintainers = [maintainers.getchoo];
      platforms = with platforms; linux ++ darwin;
    };
  }