From 31832d598650eb17ba24a81680039b1973e80158 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 25 Oct 2022 22:20:37 +0200 Subject: ... --- accounts/gkleen@sif/default.nix | 23 +++++++++++------------ overlays/pdf-redact-tools.nix | 28 ++++++++++++++++++++++++++++ user-profiles/yt-dlp.nix | 1 + 3 files changed, 40 insertions(+), 12 deletions(-) create mode 100644 overlays/pdf-redact-tools.nix diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 842f7538..fc64f2f2 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -320,19 +320,18 @@ in { home = { packages = with pkgs; [ - fira fira-code powerline-fonts nerdfonts pavucontrol keepassxc - sxiv xclip mumble pulseaudio-ctl pamixer libnotify synergy - xorg.xbacklight screen-message - wrappedYTMDesktop qt5ct playerctl evince - thunderbird wrappedZulip zoom-us steam steam-run wireshark - virt-manager rclone cached-nix-shell xournal xmonad worktime - fira-code-symbols libreoffice xournalpp wrappedChrome - nixos-shell virt-viewer freerdp gnome-icon-theme - paper-icon-theme sshpassSecret weechat helvum - wrappedElementDesktop matrix-synapse-tools.synadm - wrappedRocketChatDesktop + fira fira-code powerline-fonts nerdfonts pavucontrol + keepassxc sxiv xclip mumble pulseaudio-ctl pamixer libnotify + synergy xorg.xbacklight screen-message wrappedYTMDesktop + qt5ct playerctl evince thunderbird wrappedZulip zoom-us + steam steam-run wireshark virt-manager rclone + cached-nix-shell xournal xmonad worktime fira-code-symbols + libreoffice xournalpp wrappedChrome nixos-shell virt-viewer + freerdp gnome-icon-theme paper-icon-theme sshpassSecret + weechat helvum wrappedElementDesktop + matrix-synapse-tools.synadm wrappedRocketChatDesktop flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs - sieve-connect + sieve-connect pdf-redact-tools gimp inkscape ]; file = { diff --git a/overlays/pdf-redact-tools.nix b/overlays/pdf-redact-tools.nix new file mode 100644 index 00000000..0f779a26 --- /dev/null +++ b/overlays/pdf-redact-tools.nix @@ -0,0 +1,28 @@ +{ final, prev, ... }: { + pdf-redact-tools = prev.stdenv.mkDerivation { + pname = "pdf-redact-tools"; + version = "0.1.2"; + + src = prev.fetchFromGitHub { + owner = "firstlookmedia"; + repo = "pdf-redact-tools"; + rev = "e407942fa19027718b706033d460a1dec2097094"; + sha256 = "sha256-mnz43HLau4PQ2xYqTx67I0BD+fVe0lRxQz2uAeCsaX0="; + }; + + buildInputs = [ + (final.python27.withPackages (ps: with ps; [])) + final.makeWrapper + ]; + + buildPhase = "true"; + + installPhase = '' + mkdir -p $out/bin + install -m 0755 -t $out/bin \ + pdf-redact-tools + wrapProgram $out/bin/pdf-redact-tools \ + --prefix PATH : ${prev.lib.makeBinPath (with final; [ imagemagick ghostscriptX exiftool ])} + ''; + }; +} diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix index dcba7fe2..0af42786 100644 --- a/user-profiles/yt-dlp.nix +++ b/user-profiles/yt-dlp.nix @@ -15,6 +15,7 @@ --embed-metadata --downloader ${pkgs.aria2}/bin/aria2c --sponsorblock-mark all + --restrict-filenames ''; }; } -- cgit v1.2.3