File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
pkgs/by-name/bl/bluesnooze Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ fetchurl ,
3+ lib ,
4+ stdenv ,
5+ unzip ,
6+ } :
7+ stdenv . mkDerivation ( finalAttrs : {
8+ pname = "bluesnooze" ;
9+ version = "1.2" ;
10+ src = fetchurl {
11+ url = "https://github.com/odlp/bluesnooze/releases/download/v${ finalAttrs . version } /Bluesnooze.zip" ;
12+ hash = "sha256-B1qLfPj2bU9AAsYqGYWl0/sEPj3wnn/UBeiM4kqW/rA=" ;
13+ } ;
14+
15+ # Needed to avoid the binary becoming corrupted and mac refusing to open it. I
16+ # don't know why.
17+ dontFixup = true ;
18+
19+ # "unpack" phase does the unzipping automatically
20+ nativeBuildInputs = [ unzip ] ;
21+ sourceRoot = "." ; # squash "unpacker produced multiple directories" error
22+
23+ installPhase = ''
24+ runHook preInstall
25+
26+ mkdir -p "$out/Applications"
27+ cp -r Bluesnooze.app $out/Applications/
28+
29+ runHook postInstall
30+ '' ;
31+
32+ meta = {
33+ description = "Bluesnooze prevents your sleeping Mac from connecting to Bluetooth accessories" ;
34+ homepage = "https://github.com/odlp/bluesnooze" ;
35+ changelog = "https://github.com/odlp/bluesnooze/releases/tag/v${ finalAttrs . version } " ;
36+ license = lib . licenses . mit ;
37+ maintainers = with lib . maintainers ; [ craigf ] ;
38+ platforms = lib . platforms . darwin ;
39+ } ;
40+ } )
You can’t perform that action at this time.
0 commit comments