2 days of work
This commit is contained in:
parent
ad427500ad
commit
f8e261ad07
18 changed files with 391 additions and 32 deletions
97
packages/cloudstation.nix
Normal file
97
packages/cloudstation.nix
Normal file
|
@ -0,0 +1,97 @@
|
|||
{ stdenv
|
||||
, autoPatchelfHook
|
||||
, dbus_libs
|
||||
, dpkg
|
||||
, fetchurl
|
||||
, fontconfig
|
||||
, freetype
|
||||
, glib
|
||||
, libICE
|
||||
, libSM
|
||||
, xorg
|
||||
, openssl_1_0_2
|
||||
, openssl
|
||||
, libX11
|
||||
, makeWrapper
|
||||
, sqlite
|
||||
, wrapQtAppsHook
|
||||
, xkeyboard_config
|
||||
, zlib
|
||||
, curl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cloudstation";
|
||||
version = "4.3.3";
|
||||
release = "4469";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://global.download.synology.com/download/Tools/CloudStationDrive/${version}-${release}/Ubuntu/Installer/x86_64/synology-cloud-station-drive-${release}.x86_64.deb";
|
||||
sha256 = "0v84yb70knmmjzp7lyn6jgy5bnfsfd47wmqh29phybqg4zk3d47j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
wrapQtAppsHook
|
||||
];
|
||||
buildInputs = [
|
||||
dbus_libs
|
||||
fontconfig
|
||||
freetype
|
||||
glib
|
||||
libICE
|
||||
libSM
|
||||
libX11
|
||||
sqlite
|
||||
stdenv.cc.cc.lib
|
||||
zlib
|
||||
openssl_1_0_2
|
||||
xorg.libxcb
|
||||
curl
|
||||
];
|
||||
|
||||
ldpath = stdenv.lib.makeLibraryPath [
|
||||
dbus_libs
|
||||
fontconfig
|
||||
freetype
|
||||
glib
|
||||
libICE
|
||||
libSM
|
||||
libX11
|
||||
sqlite
|
||||
stdenv.cc.cc.lib
|
||||
zlib
|
||||
openssl_1_0_2
|
||||
openssl
|
||||
xorg.libxcb
|
||||
curl
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x $src .
|
||||
find
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -R opt $out
|
||||
chmod +x $out/opt/Synology/CloudStation/lib/*
|
||||
|
||||
#ln -s $out/opt/Synology/CloudStation/bin/launcher $out/bin/cloudstation
|
||||
makeWrapper \
|
||||
$out/opt/Synology/CloudStation/bin/launcher \
|
||||
$out/bin/cloudstation \
|
||||
--set QT_PLUGIN_PATH $out/opt/Synology/CloudStationBackup/lib/plugins/platforms \
|
||||
--set QT_XKB_CONFIG_ROOT ${xkeyboard_config}/share/X11/xkb \
|
||||
--set LD_LIBRARY_PATH $out/opt/Synology/CloudStation/lib:${ldpath}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://www.synology.com/de-de/support/download/RS815#utilities";
|
||||
description = "Synology Cloud Station Drive";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ foosinn ];
|
||||
};
|
||||
}
|
29
packages/oc311.nix
Normal file
29
packages/oc311.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
with import <nixpkgs> {};
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "oc311";
|
||||
version = "3.11";
|
||||
src = fetchurl {
|
||||
url = "https://artifacts-openshift-release-3-11.svc.ci.openshift.org/zips/openshift-origin-client-tools-v3.11.0-8aa4c38-492-linux-64bit.tar.gz";
|
||||
sha256 = "e8fde584995657e359ddaa5b25e70af2bde4cd494322c712a8cd46bfef00f07f";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
tar xvpzf $src --strip-components=1
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -m 755 -D oc $out/bin/oc3
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://www.odk.io";
|
||||
description = "openshift311 client";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ foosinn ];
|
||||
};
|
||||
}
|
29
packages/oc46.nix
Normal file
29
packages/oc46.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
with import <nixpkgs> {};
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "oc46";
|
||||
version = "4.6";
|
||||
src = fetchurl {
|
||||
url = "https://mirror.openshift.com/pub/openshift-v4/clients/oc/${version}/linux/oc.tar.gz";
|
||||
sha256 = "60de3dbb6cf085a201c5b9490a6d5066248bfd5d3c42486a8fd43abdbdb731e6";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
tar xvpzf $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -m 755 -D oc $out/bin/oc
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://www.odk.io";
|
||||
description = "openshift 4.6 client";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ foosinn ];
|
||||
};
|
||||
}
|
30
packages/openshift-install-4.5.nix
Normal file
30
packages/openshift-install-4.5.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
with import <nixpkgs> {};
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openshift-install-4.5";
|
||||
version = "4.5.0-0";
|
||||
release = "2020-10-03-012432";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/openshift/okd/releases/download/${version}.okd-${release}/openshift-install-linux-${version}.okd-${release}.tar.gz";
|
||||
sha256 = "f497193e8918840a4fd3267839affdc91ec166c5fd2ae3fdc64f498b5fc56f55";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
tar xvpzf $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -m 755 -D openshift-install $out/bin/openshift-install
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://www.odk.io";
|
||||
description = "openshift 4.5 installer";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ foosinn ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue