9 # pkgs.mommy.override {
10 # mommySettings.sweetie = "catgirl";
14 # who's my good catgirl~
19 variables = lib.mapAttrs' (
20 name: value: lib.nameValuePair "MOMMY_${lib.toUpper name}" value
22 configFile = writeText "mommy-config" (lib.toShellVars variables);
24 stdenv.mkDerivation rec {
28 src = fetchFromGitHub {
32 hash = "sha256-RgneMpxUDMjfo1nVJpqCDaEAs3FRum4dWe8dNF9CCTo=";
35 nativeBuildInputs = [ makeWrapper ];
36 nativeCheckInputs = [ shellspec ];
37 installFlags = [ "prefix=$(out)" ];
40 checkTarget = "test/unit";
43 ${lib.optionalString (mommySettings != null) ''
44 wrapProgram $out/bin/mommy \
45 --set-default MOMMY_OPT_CONFIG_FILE "${configFile}"
50 description = "mommy's here to support you, in any shell, on any system~ ❤️";
51 homepage = "https://github.com/FWDekker/mommy";
52 changelog = "https://github.com/FWDekker/mommy/blob/v${version}/CHANGELOG.md";
53 license = licenses.unlicense;
54 platforms = platforms.all;
56 mainProgram = "mommy";