Skip to content

Commit

Permalink
feat: add nix package
Browse files Browse the repository at this point in the history
  • Loading branch information
woile committed Feb 16, 2024
1 parent f103493 commit 938c7b7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.db*
.direnv
.devenv
result
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];

perSystem = { config, self', inputs', pkgs, system, ... }: {
packages.default = pkgs.rustPlatform.buildRustPackage rec {
name = "libsqlite_uuid";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
doCheck = true;

buildInputs = with pkgs; [
sqlite-interactive
] ++ lib.optionals stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.Foundation
];
nativeBuildInputs = with pkgs; [ pkg-config ];
};
devenv.shells.default = {
name = "sqlite-uuid";

Expand Down

0 comments on commit 938c7b7

Please sign in to comment.