ns-usbloader,ps3netsrv,awesome-extra: rip

This commit is contained in:
makefu 2023-12-04 15:18:47 +01:00
parent f8627e3a07
commit 0fc1681a32
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
4 changed files with 0 additions and 166 deletions
2configs/deployment/rss
3modules
5pkgs
ns-usbloader
ps3netsrv

View file

@ -1,59 +0,0 @@
regex: https://www.ebay\-kleinanzeigen.de/s\-.*
selectors:
httpsettings:
cookie: {}
header: {}
useragent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/90.0.4430.72 Safari/537.36
insecure: false
feed:
title: title
authorname: ""
authoremail: ""
item:
container: ul[id='srchrslt-adtable'] li[class='ad-listitem lazyload-item ']
title: |
title = sel:find("h2.text-module-begin"):first():text():gsub("^%s*(.-)%s*$", "%1")
print(title)
link: |
link = sel:find("a"):first():attr("href")
print("https://www.ebay-kleinanzeigen.de" .. link)
created: |-
created = ""
sel:find("div.aditem-main--top--right"):each(function(i, s)
created = s:text():gsub("^%s*(.-)%s*$", "%1")
end)
if created:match("Heute") then
time = created:gsub("^.*,", "")
print(os.date("%d.%m.%Y") .. time .. " CET")
return
end
if created:match("Gestern") then
time = created:gsub("^.*,", "")
print(os.date("%d.%m.%Y", os.time()-24*60*60) .. time .. " CET")
return
end
if created:match("\.") then
print(created .. " 00:00 CET")
return
end
createdformat: 02.01.2006 15:04 MST
description: |-
description = sel:find(".aditem-main--middle"):html()
place = sel:find(".aditem-main--top--left"):html()
print(description .. place)
content: ""
image: |
img = sel:find("div.imagebox"):first():attr("data-imgsrc")
if img ~= "" then
-- prepend host if needed
if not(img:match("https*:\/\/.*")) then
img = "https://www.ebay-kleinanzeigen.de" .. img
end
print(img)
end
nextpage: |
nextpage = sel:find("link[rel=next]"):attr("href")
print("https://www.ebay-kleinanzeigen.de" .. nextpage)
nextpagecount: 5
sort: ""

View file

@ -1,36 +0,0 @@
{config, lib, pkgs, ... }:
with lib;
let
cfg = config.makefu.awesome;
out = {
options.makefu.awesome = api;
config = lib.mkIf cfg.enable imp;
};
api = {
enable = mkEnableOption "awesome custom config";
modkey = mkOption {
type = types.str;
description = "Modkey to be used";
default = "Mod4";
};
baseConfig = mkOption {
type = types.path;
description = ''
rc.lua file to be used as default
This module will use substituteAll to replace strings before writing to
/etc/xdg/awesome/rc.lua
'';
default = pkgs.awesomecfg.full.override {
locker = "${pkgs.i3lock}/bin/i3lock -i /var/lib/wallpaper/wallpaper";
};
};
};
imp = {
home-manager.users.makefu.home.file.".config/awesome/rc.lua".source =
cfg.baseConfig.override {
inherit (cfg) modkey;
};
};
in out

View file

@ -1,38 +0,0 @@
{ lib, stdenv, fetchurl, makeWrapper, wrapGAppsHook, glib , jdk19 }:
let
jre = jdk19.override { enableJavaFX = true; };
in
stdenv.mkDerivation rec {
name = "ns-usbloader-${version}";
version = "7.0";
src = fetchurl {
url = "https://github.com/developersu/ns-usbloader/releases/download/v${version}/ns-usbloader-${version}.jar";
sha256 = "sha256-8RtzUcNVuGRJuLwUibSUH0RWnqC4h3F/c59P++C8gMM=";
};
buildInputs = [ jre ];
dontUnpack = true;
installPhase = ''
runHook preInstall
install -D $src $out/ns-usbloader/ns-usbloader.jar
makeWrapper ${jre}/bin/java $out/bin/ns-usbloader \
--add-flags "-jar $out/ns-usbloader/ns-usbloader.jar"
runHook postInstall
'';
nativeBuildInputs = [ glib wrapGAppsHook makeWrapper ];
meta = with lib; {
description = "Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files";
homepage = https://github.com/developersu/ns-usbloader;
maintainers = [ maintainers.makefu ];
platforms = platforms.linux;
license = with licenses; [ gpl3 ];
};
}

View file

@ -1,33 +0,0 @@
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, mbedtls
}:
stdenv.mkDerivation rec {
pname = "ps3netsrv";
version = "20220813";
src = fetchFromGitHub {
owner = "aldostools";
repo = "webMAN-MOD";
rev = "5301277a0eb2275c73d7c82af9cb9e9ec34369e4";
hash = "sha256-hgQSqRKFomHgOr1ejfKoR/Sywa3AjbinmAAgscVYs44=";
};
postUnpack = "pwd; ls -alhtr; ls -alhtr source";
#dontUseCmakeConfigure = true;
nativeBuildInputs = [ mbedtls meson ninja ];
buildInputs = [ mbedtls ];
sourceRoot = "./source/_Projects_/ps3netsrv";
meta = with lib; {
homepage = "https://github.com/aldostools/webMAN-MOD/wiki/~-PS3-NET-Server";
description = "a server application used to stream content from a remote server to the PS3";
maintainers = [ maintainers.makefu ];
platforms = platforms.unix;
license = licenses.mit;
};
}