lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 16.09-beta 48 lines 1.7 kB view raw
1{ stdenv, fetchurl, fetchgit, curl, scrot, imagemagick, xawtv, inetutils, makeWrapper, coreutils 2, apiKey ? "" 3, deviceKey ? "" }: 4 5# TODO: this should assert keys are set, somehow if set through .override assertion fails 6#assert apiKey != ""; 7#assert deviceKey != ""; 8 9let 10 modulesSrc = fetchgit { 11 url = "git://github.com/prey/prey-bash-client-modules.git"; 12 rev = "aba260ef110834cb2e92923a31f50c15970639ee"; 13 sha256 = "9cb1ad813d052a0a3e3bbdd329a8711ae3272e340379489511f7dd578d911e30"; 14 }; 15in stdenv.mkDerivation rec { 16 name = "prey-bash-client-${version}"; 17 version = "0.6.0"; 18 19 src = fetchurl { 20 url = "https://github.com/prey/prey-bash-client/archive/v${version}.tar.gz"; 21 sha256 = "09cb15jh4jdwvix9nx048ajkw2r5jaflk68y3rkha541n8n0qwh0"; 22 }; 23 24 buildInputs = [ curl scrot imagemagick xawtv makeWrapper ]; 25 26 phases = "unpackPhase installPhase"; 27 28 installPhase = '' 29 substituteInPlace config --replace api_key=\'\' "api_key='${apiKey}'" 30 substituteInPlace config --replace device_key=\'\' "device_key='${deviceKey}'" 31 32 substituteInPlace prey.sh --replace /bin/bash $(type -Pp bash) 33 mkdir -p $out/modules 34 cp -R . $out 35 cp -R ${modulesSrc}/* $out/modules/ 36 wrapProgram "$out/prey.sh" \ 37 --prefix PATH ":" "${stdenv.lib.makeBinPath [ xawtv imagemagick curl scrot inetutils coreutils ]}" \ 38 --set CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt" 39 ''; 40 41 meta = with stdenv.lib; { 42 homepage = http://preyproject.com; 43 description = "Proven tracking software that helps you find, lock and recover your devices when stolen or missing"; 44 maintainers = with maintainers; [ domenkozar ]; 45 license = licenses.gpl3; 46 platforms = with platforms; linux; 47 }; 48}