diff --git a/flake.nix b/flake.nix index 96b079b..74ed969 100644 --- a/flake.nix +++ b/flake.nix @@ -133,8 +133,6 @@ }; packages = { x86_64-linux = with import nixpkgs-unstable-raw {system = "x86_64-linux";}; { - anything-sync-daemon = callPackage ./pkgs/anything-sync-daemon {}; - discord-krisp-fixer = callPackage ./pkgs/discord-krisp-fixer {}; kasane-teto-cursor = callPackage ./pkgs/kasane-teto-cursor {}; }; }; diff --git a/pkgs/anything-sync-daemon/default.nix b/pkgs/anything-sync-daemon/default.nix deleted file mode 100644 index afa5417..0000000 --- a/pkgs/anything-sync-daemon/default.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ - stdenv, - lib, - fetchFromGitHub, - makeWrapper, - rsync, - gawk, - pv, - gnutar, - zstd, - util-linux, - coreutils, - gnugrep, - findutils, -}: -stdenv.mkDerivation rec { - pname = "anything-sync-daemon"; - version = "6.0.0"; - - src = fetchFromGitHub { - owner = "graysky2"; - repo = pname; - rev = "v${version}"; - hash = "sha256-6nfaAMH5YgK6gimuZ8j1zWLTDOi11KIwW7Bf0Iwh7+I="; - }; - - patches = [./disableDaemonStopTargets.patch]; - - nativeBuildInputs = [makeWrapper]; - - postPatch = '' - substituteInPlace init/asd* \ - --replace /usr/bin/anything-sync-daemon $out/bin/anything-sync-daemon - ''; - - enableParallelBuilding = true; - - makeFlags = [ - "DESTDIR=${placeholder "out"}" - "PREFIX=" - "INITDIR_SYSTEMD=/lib/systemd/system" - ]; - - installTargets = ["install-systemd-all"]; - - postInstall = '' - wrapProgram $out/bin/anything-sync-daemon \ - --suffix PATH : ${lib.makeBinPath [rsync gawk pv gnutar zstd util-linux coreutils gnugrep findutils]} - ''; - - meta = with lib; { - description = "Symlinks and syncs user specified dirs to RAM"; - homepage = "https://github.com/graysky2/anything-sync-daemon/"; - license = lib.licenses.mit; - platforms = platforms.linux; - }; -} diff --git a/pkgs/anything-sync-daemon/disableDaemonStopTargets.patch b/pkgs/anything-sync-daemon/disableDaemonStopTargets.patch deleted file mode 100644 index 6dd71bd..0000000 --- a/pkgs/anything-sync-daemon/disableDaemonStopTargets.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/Makefile b/Makefile -index ddf2d73..827ea8f 100644 ---- a/Makefile -+++ b/Makefile -@@ -31,17 +31,7 @@ common/$(PN): Makefile common/$(PN).in - - help: install - --stop-asd: --ifneq ($(PREFIX), /usr) -- sudo -E asd unsync --endif -- --disable-systemd: --ifeq ($(PREFIX), /usr) -- systemctl stop asd asd-resync || /bin/true --endif -- --install-bin: stop-asd disable-systemd common/$(PN) -+install-bin: common/$(PN) - $(Q)echo -e '\033[1;32mInstalling main script...\033[0m' - $(INSTALL_DIR) "$(DESTDIR)$(BINDIR)" - $(INSTALL_PROGRAM) common/$(PN) "$(DESTDIR)$(BINDIR)/$(PN)" diff --git a/pkgs/discord-krisp-fixer b/pkgs/discord-krisp-fixer deleted file mode 100644 index baa22d2..0000000 --- a/pkgs/discord-krisp-fixer +++ /dev/null @@ -1,17 +0,0 @@ -{ writeShellApplication -, rizin -, discord -}: - -writeShellApplication rec { - name = "discord-krisp-fixer"; - - runtimeInputs = [ rizin ]; - - text = '' - discord_version="${discord.version}" - file="$HOME/.config/discord/$discord_version/modules/discord_krisp/discord_krisp.node" - addr=$(rz-find -x '4881ec00010000' "$file" | head -n1) - rizin -q -w -c "s $addr + 0x30 ; wao nop" "$file" - ''; -}