summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/broken
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-08-16 12:03:32 +0200
committermakefu <github@syntax-fehler.de>2017-08-16 12:03:32 +0200
commitbacdb91d8d5a856d735ff8c52ecb0010511027b7 (patch)
tree8d1a34871102c685fdf0338a767aedd359397fb2 /makefu/5pkgs/broken
parent60be2e12f968ba0097289f0a2ce47d870e9e4c2d (diff)
ma 5pkgs: cleanup
Diffstat (limited to 'makefu/5pkgs/broken')
-rw-r--r--makefu/5pkgs/broken/arduino-chroot/default.nix20
-rw-r--r--makefu/5pkgs/broken/arduino-chroot/fhsUser.nix25
-rwxr-xr-xmakefu/5pkgs/broken/arduino-chroot/out/xtensa-lx106-elf-g++bin0 -> 685928 bytes
-rw-r--r--makefu/5pkgs/broken/arduino-chroot/xtensa-lx106-elf-g++.tar.gzbin0 -> 253935 bytes
-rw-r--r--makefu/5pkgs/broken/glastopf/default.nix33
-rw-r--r--makefu/5pkgs/broken/logstash-input-github/default.nix35
-rw-r--r--makefu/5pkgs/broken/pyload/default.nix30
7 files changed, 143 insertions, 0 deletions
diff --git a/makefu/5pkgs/broken/arduino-chroot/default.nix b/makefu/5pkgs/broken/arduino-chroot/default.nix
new file mode 100644
index 000000000..c08153dcf
--- /dev/null
+++ b/makefu/5pkgs/broken/arduino-chroot/default.nix
@@ -0,0 +1,20 @@
+{stdenv, pkgs, lib, ... }:
+
+stdenv.mkDerivation rec {
+ name = "xtensa-g++";
+ buildInputs = [ pkgs.makeWrapper ];
+
+ libPath = lib.makeLibraryPath [ pkgs.gcc.lib ];
+ src = ./xtensa-lx106-elf-g++.tar.gz;
+
+ phases = [ "unpackPhase" "installPhase" ];
+ installPhase = ''
+ set -x
+ mkdir -p $out/bin
+ cp ./xtensa-lx106-elf-g++ $out/bin/xtensa-lx106-elf-g++
+ patchelf \
+ --set-interpreter "$(< "$NIX_CC/nix-support/dynamic-linker")" \
+ --set-rpath "${libPath}" \
+ $out/bin/xtensa-lx106-elf-g++
+ '';
+}
diff --git a/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix b/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix
new file mode 100644
index 000000000..a699bbfb8
--- /dev/null
+++ b/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix
@@ -0,0 +1,25 @@
+{ lib, pkgs, ... }: let
+
+env_nix = pkgs.writeText "env.nix" ''
+ { pkgs ? import <nixpkgs> {} }:
+
+ (pkgs.buildFHSUserEnv {
+ name = "simple-x11-env";
+ targetPkgs = pkgs: with pkgs; [
+ coreutils
+ gcc
+ arduino
+ ];
+ multiPkgs = pkgs: with pkgs; [
+ zlib
+ curl
+ ];
+ runScript = "arduino";
+ }).env
+'';
+
+
+in pkgs.writeDashBin "games-user-env" ''
+ nix-shell ${env_nix}
+''
+
diff --git a/makefu/5pkgs/broken/arduino-chroot/out/xtensa-lx106-elf-g++ b/makefu/5pkgs/broken/arduino-chroot/out/xtensa-lx106-elf-g++
new file mode 100755
index 000000000..745bb70ba
--- /dev/null
+++ b/makefu/5pkgs/broken/arduino-chroot/out/xtensa-lx106-elf-g++
Binary files differ
diff --git a/makefu/5pkgs/broken/arduino-chroot/xtensa-lx106-elf-g++.tar.gz b/makefu/5pkgs/broken/arduino-chroot/xtensa-lx106-elf-g++.tar.gz
new file mode 100644
index 000000000..1af7e2807
--- /dev/null
+++ b/makefu/5pkgs/broken/arduino-chroot/xtensa-lx106-elf-g++.tar.gz
Binary files differ
diff --git a/makefu/5pkgs/broken/glastopf/default.nix b/makefu/5pkgs/broken/glastopf/default.nix
new file mode 100644
index 000000000..981b93578
--- /dev/null
+++ b/makefu/5pkgs/broken/glastopf/default.nix
@@ -0,0 +1,33 @@
+{ lib, pkgs, fetchFromGitHub, ... }:
+
+with pkgs.pythonPackages;buildPythonPackage rec {
+ name = "glastopf-${version}";
+ version = "3.1.2";
+ propagatedBuildInputs = [
+ gevent
+ pyopenssl
+ webob
+ chardet
+ lxml
+ sqlalchemy
+ jinja2
+ beautifulsoup
+ pymongo
+ mysql-python
+ hpfeeds
+ pylibinjection
+ libtaxii
+ python-logstash
+ ];
+ src = fetchFromGitHub {
+ owner = "makefu";
+ repo = "mycube-flask";
+ rev = "48dc6857";
+ sha256 = "1ax1vz6m5982l1mmp9vmywn9nw9p9h4m3ss74zazyspxq1wjim0v";
+ };
+ meta = {
+ homepage = https://github.com/makefu/mycube-flask;
+ description = "flask app for mycube";
+ license = lib.licenses.asl20;
+ };
+}
diff --git a/makefu/5pkgs/broken/logstash-input-github/default.nix b/makefu/5pkgs/broken/logstash-input-github/default.nix
new file mode 100644
index 000000000..3e664e188
--- /dev/null
+++ b/makefu/5pkgs/broken/logstash-input-github/default.nix
@@ -0,0 +1,35 @@
+{ pkgs, stdenv, lib, fetchFromGitHub }:
+
+
+# TODO: requires ftw ruby package
+stdenv.mkDerivation rec {
+ name = "logstash-input-github-${version}";
+ version = "3.0.2";
+
+ src = fetchFromGitHub {
+ owner = "logstash-plugins";
+ repo = "logstash-input-github";
+ rev = "v${version}";
+ sha256 = "0xc7dicfkqq10w687xyb37qpjmkzxi2n64d16h059b0irh8sychx";
+ };
+
+ dontBuild = true;
+ dontPatchELF = true;
+ dontStrip = true;
+ dontPatchShebangs = true;
+ propagatedBuildInputs = [
+ pkgs.rubyPackages.ftw
+ ];
+ installPhase = ''
+ mkdir -p $out/logstash
+ cp -r lib/* $out
+ '';
+
+ meta = with lib; {
+ description = "logstash github plugin";
+ homepage = https://github.com/logstash-plugins/logstash-input-github;
+ license = stdenv.lib.licenses.asl20;
+ platforms = stdenv.lib.platforms.unix;
+ maintainers = with maintainers; [ makefu ];
+ };
+}
diff --git a/makefu/5pkgs/broken/pyload/default.nix b/makefu/5pkgs/broken/pyload/default.nix
new file mode 100644
index 000000000..363a67ba4
--- /dev/null
+++ b/makefu/5pkgs/broken/pyload/default.nix
@@ -0,0 +1,30 @@
+{ pkgs, ... }:
+with import <stockholm/lib>;
+let
+in pkgs.python3Packages.buildPythonPackage rec {
+ name = "pyload";
+ version = "0.5.2";
+
+ src = pkgs.fetchFromGitHub {
+ owner = "pyload";
+ repo = "pyload";
+ rev = "v${version}";
+ sha256 = "1icbn1nw6w0sc5150fr69rlhs0j5ldnnxfzl2qabq2wi0dbar8hf";
+ };
+
+ propagatedBuildInputs = with pkgs.python3Packages; [
+ autoupgrade-ng daemonize future pycurl pyload-config
+ pyload-utils2 requests2 setuptools
+ ];
+ buildInputs = with pkgs.python3Packages; [
+ future nose pycurl pyload-config
+ pyload-utuls2 requests2 unittest2 websocket-client
+ ];
+
+ meta = {
+ homepage = https://github.com/pyload/pyload ;
+ description = "pyload server";
+ license = licenses.mit;
+ maintainers = with maintainers; [ makefu ];
+ };
+}