Skip to content

Instantly share code, notes, and snippets.

@brandoncc
Last active November 27, 2024 02:17
Show Gist options
  • Select an option

  • Save brandoncc/2118b442ced586f5ab0a9d9b1dfa173f to your computer and use it in GitHub Desktop.

Select an option

Save brandoncc/2118b442ced586f5ab0a9d9b1dfa173f to your computer and use it in GitHub Desktop.

Revisions

  1. brandoncc revised this gist Nov 27, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion how to install mysql2 gem in devenv.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## Option 1

    Make sure these are in devenv.yaml
    Make sure these are in devenv.nix

    ```nix
    packages = with pkgs; [
  2. brandoncc revised this gist Nov 27, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion how to install mysql2 gem in devenv.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ Make sure these are in devenv.yaml
    enable = true;
    };
    env.NIX_CFLAGS_COMPILE = "-I ${pkgs.libxml2.dev}/include/libxml2 -I ${pkgs.mariadb-connector-c}/include/mariadb";
    env.NIX_CFLAGS_COMPILE = "-I ${pkgs.mariadb-connector-c}/include/mariadb";
    ```

    ## Option 2
  3. brandoncc revised this gist Nov 27, 2024. 1 changed file with 18 additions and 0 deletions.
    18 changes: 18 additions & 0 deletions how to install mysql2 gem in devenv.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,21 @@
    ## Option 1

    Make sure these are in devenv.yaml

    ```nix
    packages = with pkgs; [
    libmysqlclient
    ];
    services.mysql = {
    enable = true;
    };
    env.NIX_CFLAGS_COMPILE = "-I ${pkgs.libxml2.dev}/include/libxml2 -I ${pkgs.mariadb-connector-c}/include/mariadb";
    ```

    ## Option 2

    Make sure these are in devenv.yaml

    ```yaml
  4. brandoncc renamed this gist Nov 27, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. brandoncc created this gist Nov 27, 2024.
    20 changes: 20 additions & 0 deletions how.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    Make sure these are in devenv.yaml

    ```yaml
    inputs:
    nixpkgs-unstable:
    url: github:nixos/nixpkgs/nixpkgs-unstable
    ```
    Make sure these are in devenv.nix
    ```nix
    packages = with pkgs; [
    zstd
    ];

    services.mysql = {
    enable = true;
    package = pkgs-unstable.percona-server;
    };
    ```