Skip to content

Commit

Permalink
fix(nix): git deps outputHashes, build inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Aug 2, 2024
1 parent 90c9caf commit 1013365
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
20 changes: 9 additions & 11 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ rustPlatform.buildRustPackage {
inherit version;

src = ./.;
cargoLock.lockFile = ./Cargo.lock;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"git-tracker-0.2.0" = "sha256-4ah3X7y8bBV/fKQdXJXe3nphqAtnZOpBTG8ZXaoHKcc=";
};
};

buildInputs =
[ openssl ]
++ lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
CoreFoundation
SystemConfiguration
]
);
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ SystemConfiguration ]);

nativeBuildInputs = [ pkg-config ];

Expand Down
6 changes: 3 additions & 3 deletions flake.lock

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

0 comments on commit 1013365

Please sign in to comment.