Skip to content

Commit

Permalink
Add an exception for db2 on unsupported archs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayrnt authored and rupurt committed Jul 29, 2023
1 parent f1f543f commit d1b0939
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@
];
};
stdenv = pkgs.llvmPackages_15.stdenv;

# Define a helper function to conditionally include the db2-odbc-driver package as not all arch are supported
getDb2OdbcDriver =
if system == "aarch64-linux" || system == "aarch64-darwin" then null else pkgs.db2-odbc-driver {};


in rec {
# packages exported by the flake
packages = {
db2-odbc-driver = pkgs.db2-odbc-driver {};
db2-odbc-driver = getDb2OdbcDriver;
postgres-odbc-driver = pkgs.postgres-odbc-driver {};
};

Expand Down

0 comments on commit d1b0939

Please sign in to comment.