Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-run spdk build when the rev is modified and missing cherry-pick #63

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions nix/pkgs/libspdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,31 @@ let
#
# Derivation attributes
#
drvAttrs = rec {
spdk = rec {
rev = "50b064f553970b0f352691530e80f19b8432f034";
sha256 = "sha256-fim71qqNjGtITeXfR7kWIRpBbI2iF47D0suny3mjcCQ=";
pname = "libspdk${nameSuffix}";
version = "24.05-e5f7aa4";
version = "24.05-${lib.substring 0 7 rev}";
name = "${pname}-${version}";
};
drvAttrs = rec {
pname = spdk.pname;
version = spdk.version;

src = [
(fetchFromGitHub {
name = pname;
# Note that this would only rebuild if the first 7 chars differ, but in practice should be fine
name = spdk.name;
owner = "openebs";
repo = "spdk";
rev = "e5f7aa4c8250fd517764f073637f956b78c323c2";
sha256 = "sha256-VqaX5LAuNg0bAPz76xz2EU0XXLoyCwqDlP6+XWE5o14=";
rev = spdk.rev;
sha256 = spdk.sha256;
fetchSubmodules = true;
})
../../../build_scripts
];

sourceRoot = pname;
sourceRoot = spdk.name;

nativeBuildInputs = [
cmake
Expand Down
Loading