-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library | ||
# as well as the libraries available from your flake's inputs. | ||
lib, | ||
# You also have access to your flake's inputs. | ||
inputs, | ||
# The namespace used for your flake, defaulting to "internal" if not set. | ||
namespace, | ||
# All other arguments come from NixPkgs. You can use `pkgs` to pull packages or helpers | ||
# programmatically or you may add the named attributes as arguments here. | ||
pkgs, | ||
stdenv, | ||
rustPlatform, | ||
fetchFromGitHub, | ||
... | ||
}: | ||
rustPlatform.buildRustPackage rec { | ||
pname = "prefligit"; | ||
version = "v0.0.8"; | ||
src = fetchFromGitHub { | ||
owner = "j178"; | ||
repo = pname; | ||
rev = version; | ||
hash = "sha256-t+eAocUFhC4ntUUMUVKWEeFUVzyWzXOhmWWY4LiyZfc="; | ||
}; | ||
cargoHash = "sha256-rAnqDcr7713bVohqL3YMbjwFOfOai27jTy7EaY3lS4E="; | ||
# cargoDeps = rustPlatform.importCargoLock { | ||
# lockFile = ../../Cargo.lock; | ||
# }; | ||
} | ||
# let | ||
# src = inputs.craneLib.cleanCargoSource ./.; | ||
# commonArgs = { | ||
# inherit src; | ||
# strictDeps = true; | ||
# buildInputs = [ | ||
# # Add additional build inputs here | ||
# ] ++ lib.optionals pkgs.stdenv.isDarwin [ | ||
# # Additional darwin specific inputs can be set here | ||
# pkgs.libiconv | ||
# ]; | ||
# }; | ||
# cargoArtifacts = inputs.craneLib.buildDepsOnly commonArgs; | ||
# in | ||
# { | ||
# # Build the actual crate itself, reusing the dependency | ||
# # artifacts from above. | ||
# prefligit = inputs.craneLib.buildPackage (commonArgs // { | ||
# inherit cargoArtifacts; | ||
# }); | ||
# } | ||
|