Flake: remove unused packages
This commit is contained in:
parent
afab4c4d0a
commit
c42c6cd83a
4 changed files with 0 additions and 99 deletions
|
|
@ -133,8 +133,6 @@
|
||||||
};
|
};
|
||||||
packages = {
|
packages = {
|
||||||
x86_64-linux = with import nixpkgs-unstable-raw {system = "x86_64-linux";}; {
|
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 {};
|
kasane-teto-cursor = callPackage ./pkgs/kasane-teto-cursor {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -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)"
|
|
||||||
|
|
@ -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"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue