Skip to content
Permalink
Browse files

azure storage explorer - wip

  • Loading branch information
peterhoeg committed Aug 15, 2017
1 parent 129f8d7 commit 34120c831e5480aa8dcd1118d1467f43a5fd3d93
@@ -0,0 +1,71 @@
{ stdenv, fetchurl, makeWrapper, atomEnv, pkgs }:

stdenv.mkDerivation rec {
name = "storage-explorer-${version}";
version = "0.8.15";

src = fetchurl {
url = "http://download.microsoft.com/download/A/E/3/AE32C485-B62B-4437-92F7-8B6B2C48CB40/StorageExplorer-linux-x64.tar.gz";
sha256 = "11dbq0vl1by8559642zgd62jrhl7vy4pcghgig24p65wk98drrb6";
};

libPath = stdenv.lib.makeLibraryPath ((with pkgs; [
atomEnv
# alsaLib
# atk
# cairo
# cups
# dbus
# expat
# ffmpeg
# fontconfig
# freetype
# gnome2.GConf
# gdk_pixbuf
# glib
# gtk2
# nspr
# nss
# pango
# stdenv.cc.cc.lib
]) ++ (with pkgs.xorg; [
# libX11 libxcb libXrender libXScrnSaver libXtst
# libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes
]));

nativeBuildInputs = [ makeWrapper ];

dontBuild = true;

unpackPhase = ''
runHook preUnpack
export dir=$out/lib/storage-explorer
mkdir -p $dir
tar -xf $src -C $dir
runHook postUnpack
'';

installPhase = ''
mkdir -p $out/bin
ln -s $dir/StorageExplorer $out/bin/storage-explorer
'';

postFixup = ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath ${libPath}:$dir \
$out/opt/storage-explorer/StorageExplorer
'';

meta = with stdenv.lib; {
description = "Work with Azure Storage data.";
homepage = https://www.storageexplorer.com;
maintainers = with maintainers; [ peterhoeg ];
license = licenses.asl20;
platforms = platforms.linux;
};
}
@@ -0,0 +1,116 @@
{ stdenv, fetchurl, fetchFromGitHub, znc }:

let
zncDerivation = a@{
name, src, module_name,
buildPhase ? "${znc}/bin/znc-buildmod ${module_name}.cpp",
installPhase ? "install -D ${module_name}.so $out/lib/znc/${module_name}.so", ...
} : stdenv.mkDerivation (a // {
inherit buildPhase;
inherit installPhase;

meta = a.meta // { platforms = stdenv.lib.platforms.unix; };
passthru.module_name = module_name;
});

in rec {

clientbuffer = zncDerivation rec {
name = "znc-clientbuffer-${version}";
version = "git-2015-08-27";
module_name = "clientbuffer";

src = fetchFromGitHub {
owner = "jpnurmi";
repo = "znc-clientbuffer";
rev = "fe0f368e1fcab2b89d5c94209822d9b616cea840";
sha256 = "1s8bqqlwy9kmcpmavil558rd2b0wigjlzp2lpqpcqrd1cg25g4a7";
};

meta = with stdenv.lib; {
description = "ZNC module for client specific buffers";
homepage = https://github.com/jpnurmi/znc-clientbuffer;
license = licenses.asl20;
maintainers = with maintainers; [ hrdinka ];
};
};

fish = zncDerivation rec {
name = "znc-fish-${version}";
version = "git-2014-10-10";
module_name = "fish";

src = fetchFromGitHub {
# this fork works with ZNC 1.6
owner = "jarrydpage";
repo = "znc-fish";
rev = "9c580e018a1a08374e814fc06f551281cff827de";
sha256 = "0yvs0jkwwp18qxqvw1dvir91ggczz56ka00k0zlsb81csdi8xfvl";
};

meta = {
description = "ZNC FiSH module";
homepage = https://github.com/dctrwatson/znc-fish;
maintainers = [ stdenv.lib.maintainers.offline ];
};
};

playback = zncDerivation rec {
name = "znc-playback-${version}";
version = "git-2015-08-04";
module_name = "playback";

src = fetchFromGitHub {
owner = "jpnurmi";
repo = "znc-playback";
rev = "8691abf75becc1f3d7b5bb5ad68dad17cd21863b";
sha256 = "0mgfajljy035051b2sx70i8xrb51zw9q2z64kf85zw1lynihzyh4";
};

meta = with stdenv.lib; {
description = "An advanced playback module for ZNC";
homepage = https://github.com/jpnurmi/znc-playback;
license = licenses.asl20;
maintainers = with maintainers; [ hrdinka ];
};
};

privmsg = zncDerivation rec {
name = "znc-privmsg-${version}";
version = "git-2015-02-22";
module_name = "privmsg";

src = fetchFromGitHub {
owner = "kylef";
repo = "znc-contrib";
rev = "9f1f98db56cbbea96d83e6628f657e0d62cd9517";
sha256 = "0n82z87gdxxragcaixjc80z8bw4bmfwbk0jrf9zs8kk42phlkkc2";
};

meta = {
description = "ZNC privmsg module";
homepage = https://github.com/kylef/znc-contrib;
};
};

push = zncDerivation rec {
name = "znc-push-${version}";
version = "git-2016-10-12";
module_name = "push";

src = fetchFromGitHub {
owner = "jreese";
repo = "znc-push";
rev = "cf08b9e0f483f03c28d72dd78df932cbef141f10";
sha256 = "0xpwjw8csyrg736g1jc1n8d6804x6kbdkrvldzhk9ldj4iwqz7ay";
};

meta = {
description = "Push notification service module for ZNC";
homepage = https://github.com/jreese/znc-push;
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ offline schneefux ];
};
};

}
@@ -9651,7 +9651,7 @@ with pkgs;
opencollada = callPackage ../development/libraries/opencollada { };

opencore-amr = callPackage ../development/libraries/opencore-amr { };

opencsg = callPackage ../development/libraries/opencsg { };

openct = callPackage ../development/libraries/openct { };
@@ -11363,7 +11363,7 @@ with pkgs;
munin = callPackage ../servers/monitoring/munin { };

nagiosPluginsOfficial = callPackage ../servers/monitoring/nagios/plugins/official-2.x.nix { };

checkSSLCert = callPackage ../servers/monitoring/nagios/plugins/check_ssl_cert.nix { };

neo4j = callPackage ../servers/nosql/neo4j { };
@@ -12408,6 +12408,8 @@ with pkgs;
};
open-vm-tools-headless = open-vm-tools.override { withX = false; };

storage-explorer = callPackage ../applications/networking/storage-explorer { };

delve = callPackage ../development/tools/delve { };

go-bindata = callPackage ../development/tools/go-bindata { };

0 comments on commit 34120c8

Please sign in to comment.
You can’t perform that action at this time.