Skip to content

Commit

Permalink
wip: adding prefligit package
Browse files Browse the repository at this point in the history
  • Loading branch information
arichtman committed Jan 25, 2025
1 parent a42aa70 commit 9d2c772
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions packages/prefligit/default.nix
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;
# });
# }

0 comments on commit 9d2c772

Please sign in to comment.