up
This commit is contained in:
@@ -24,22 +24,25 @@
|
||||
installShellFiles,
|
||||
fuseSupport ? false,
|
||||
udevCheckHook,
|
||||
namespace,
|
||||
}:
|
||||
let
|
||||
inherit (lib.trivial) importJSON;
|
||||
inherit (lib.${namespace}) selectVariant mkAllSources;
|
||||
|
||||
versionSpec = importJSON ./version.json;
|
||||
selected = selectVariant versionSpec null null;
|
||||
sources = mkAllSources selected;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "bcachefs-tools";
|
||||
version = "1.36.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koverstreet";
|
||||
repo = "bcachefs-tools";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-15Z1lHNeXTToDpdVc/YB5ojhoiB5qdgWs47O1aKoyFM=";
|
||||
};
|
||||
src = sources.bcachefs-tools;
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs) src;
|
||||
hash = "sha256-YWsJUSgKNkK9W4Yuolix21bRRFSF01+sivoj7SJo7DY=";
|
||||
hash = sources.cargoDeps.hash;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
16
packages/bcachefs/version.json
Normal file
16
packages/bcachefs/version.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"sources": {
|
||||
"bcachefs-tools": {
|
||||
"fetcher": "git",
|
||||
"url": "https://github.com/koverstreet/bcachefs-tools",
|
||||
"tag": "1.36.1",
|
||||
"hash": "sha256-15Z1lHNeXTToDpdVc/YB5ojhoiB5qdgWs47O1aKoyFM=",
|
||||
"cargoHash": "sha256-YWsJUSgKNkK9W4Yuolix21bRRFSF01+sivoj7SJo7DY="
|
||||
},
|
||||
"cargoDeps": {
|
||||
"hash": "sha256-YWsJUSgKNkK9W4Yuolix21bRRFSF01+sivoj7SJo7DY="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user