depot/pkgs/by-name/bl/bluesnarfer/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

37 lines
782 B
Nix

{
lib,
stdenv,
fetchzip,
bluez,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bluesnarfer";
version = "0.1";
src = fetchzip {
url = "http://www.alighieri.org/tools/bluesnarfer.tar.gz";
stripRoot = false;
hash = "sha256-HGdrJZohKIsOkLETBdHz80w6vxmG25aMEWXrQlpMgRw=";
};
sourceRoot = finalAttrs.src.name + "/bluesnarfer";
buildInputs = [ bluez ];
strictDeps = true;
installPhase = ''
runHook preInstall
install -Dm755 bluesnarfer $out/bin/bluesnarfer
runHook postInstall
'';
meta = {
description = "Bluetooth bluesnarfing utility";
homepage = "http://www.alighieri.org/project.html";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ fgaz ];
platforms = lib.platforms.linux;
};
})