summaryrefslogtreecommitdiff
path: root/pkgs/mommy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/mommy/default.nix')
-rw-r--r--pkgs/mommy/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/mommy/default.nix b/pkgs/mommy/default.nix
new file mode 100644
index 0000000..c8938e9
--- /dev/null
+++ b/pkgs/mommy/default.nix
@@ -0,0 +1,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;
+ };
+ }