From 0aba999eb80b34b990217e6e12bcf347e0bc72a8 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 24 May 2016 00:28:35 +0200 Subject: add skytraq-logger --- makefu/5pkgs/skytraq-logger/default.nix | 31 +++++++++++++++++++++++++++++++ makefu/5pkgs/skytraq-logger/result | 1 + 2 files changed, 32 insertions(+) create mode 100644 makefu/5pkgs/skytraq-logger/default.nix create mode 120000 makefu/5pkgs/skytraq-logger/result (limited to 'makefu/5pkgs/skytraq-logger') diff --git a/makefu/5pkgs/skytraq-logger/default.nix b/makefu/5pkgs/skytraq-logger/default.nix new file mode 100644 index 000000000..1ad81594a --- /dev/null +++ b/makefu/5pkgs/skytraq-logger/default.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, pkgs, fetchFromGitHub, ... }: +stdenv.mkDerivation rec { + name = "skytraq-datalogger-${version}"; + version = "4966a8"; + src = fetchFromGitHub { + owner = "makefu"; + repo = "skytraq-datalogger"; + rev = version ; + sha256 = "1qaszrs7638kc9x4qq4m1yxqmk8jw7wajywvdk4wc2i007p89v3y"; + }; + buildFlags = "CC=gcc"; + makeFlags = "PREFIX=bin/ DESTDIR=$(out)"; + + preInstall = '' + mkdir -p $out/bin + ''; + #patchPhase = '' + # sed -i -e 's#/usr/bin/gcc#gcc#' -e Makefile + #''; + + buildInputs = with pkgs;[ + curl + gnugrep + ]; + + meta = { + homepage = http://github.com/makefu/skytraq-datalogger; + description = "datalogger for skytraq"; + license = lib.licenses.gpl2; + }; +} diff --git a/makefu/5pkgs/skytraq-logger/result b/makefu/5pkgs/skytraq-logger/result new file mode 120000 index 000000000..b132d6257 --- /dev/null +++ b/makefu/5pkgs/skytraq-logger/result @@ -0,0 +1 @@ +/nix/store/xpwdwpw2nkgi16yhpxin2kivaz7z588h-skytraq-datalogger-4966a8 \ No newline at end of file -- cgit v1.2.3 From 8256ebd954524a12d9b1fe148c4c68a652800a4d Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 2 Jun 2016 14:57:07 +0200 Subject: ma 5: remove leftover `./result` --- makefu/5pkgs/skytraq-logger/result | 1 - 1 file changed, 1 deletion(-) delete mode 120000 makefu/5pkgs/skytraq-logger/result (limited to 'makefu/5pkgs/skytraq-logger') diff --git a/makefu/5pkgs/skytraq-logger/result b/makefu/5pkgs/skytraq-logger/result deleted file mode 120000 index b132d6257..000000000 --- a/makefu/5pkgs/skytraq-logger/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/xpwdwpw2nkgi16yhpxin2kivaz7z588h-skytraq-datalogger-4966a8 \ No newline at end of file -- cgit v1.2.3