2023-01-28 21:05:02 +00:00
|
|
|
final: prev: {
|
|
|
|
blesh = prev.blesh.overrideAttrs (oldAttrs: rec {
|
2023-05-17 22:04:39 +00:00
|
|
|
#inherit (prev.sources.blesh-nvfetcher) version src;
|
2023-06-20 21:32:13 +00:00
|
|
|
version = "0.4.0-devel4";
|
|
|
|
src = prev.fetchFromGitHub {
|
|
|
|
owner = "akinomyoga";
|
|
|
|
repo = "ble.sh";
|
|
|
|
rev = "f16c0d807c8e1fe26fa5d990b561829382cbdc72";
|
|
|
|
hash = "sha256-+tcM1z9uD7WXA7CfHmTbcPRcZfmXZ+Y7y6Bj4QA3f+4=";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
leaveDotGit = true;
|
2023-05-17 22:04:39 +00:00
|
|
|
};
|
2023-06-20 21:32:13 +00:00
|
|
|
dontBuild = false;
|
|
|
|
buildInputs = [prev.git];
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace GNUmakefile \
|
|
|
|
--replace "git submodule update --init --recursive" ""
|
|
|
|
'';
|
|
|
|
nativeCheckInputs = oldAttrs.nativeCheckInputs ++ [prev.busybox];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p "$out/share/blesh/lib"
|
|
|
|
|
|
|
|
cat <<EOF >"$out/share/blesh/lib/_package.sh"
|
|
|
|
_ble_base_package_type=nix
|
|
|
|
|
|
|
|
function ble/base/package:nix/update {
|
|
|
|
echo "Ble.sh is installed by Nix. You can update it there." >&2
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
make install INSDIR=$out/share/blesh
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2023-01-28 21:05:02 +00:00
|
|
|
});
|
|
|
|
}
|