~sbaildon/yemma

yemma/flake.nix -rw-r--r-- 967 bytes
38e5b1faSean Baildon user_settings_url with conn 20 days ago
                                                                                
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
{
  description = "Yemma";

  inputs = {
    nixpkgs.url =
      "github:NixOS/nixpkgs/819e4d63fc7f337a822a049fd055cd7615a5e0d6";
  };

  outputs = { self, nixpkgs }:
    let
      pkgs = nixpkgs.legacyPackages.x86_64-darwin;
    in
    {
      # nix develop
      devShells.x86_64-darwin.default = pkgs.mkShell {
        buildInputs = with pkgs.darwin.apple_sdk.frameworks; [
          pkgs.postgresql
          pkgs.elixir
          CoreFoundation
          CoreServices
        ];
        shellHook = ''
          if [ -f ./.env ]; then
            set -a; source ./.env; set +a
          fi
        '';
      };

      apps.x86_64-darwin.postgres = {
        type = "app";
        program = "${pkgs.postgresql}/bin/postgres";
      };

      apps.x86_64-darwin.iex = {
        type = "app";
        program = "${pkgs.elixir}/bin/iex";
      };

      apps.x86_64-darwin.mix = {
        type = "app";
        program = "${pkgs.elixir}/bin/mix";
      };

    };
}