From abd9ac8e7c31bbf62f0b9300cbaf17878427b4f0 Mon Sep 17 00:00:00 2001 From: dish Date: Wed, 27 Aug 2025 08:21:20 -0400 Subject: [PATCH] plowshare: upgrade spidermonkey dependency; modernize Spidermonkey 115 goes EOL in 3 weeks from this commit, so we want to upgrade all dependants before then in preparation. plowshare does not require a specific version, as it uses the CLI tool, so it's easy to upgrade. I also modernized the code, using makeBinaryWrapper instead of makeWrapper, and added a homepage for the package as well. --- pkgs/by-name/pl/plowshare/package.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/pl/plowshare/package.nix b/pkgs/by-name/pl/plowshare/package.nix index 50ccefde02a2..76aaff1bbf47 100644 --- a/pkgs/by-name/pl/plowshare/package.nix +++ b/pkgs/by-name/pl/plowshare/package.nix @@ -2,10 +2,10 @@ lib, stdenv, fetchFromGitHub, - makeWrapper, + makeBinaryWrapper, curl, recode, - spidermonkey_115, + spidermonkey_140, }: stdenv.mkDerivation rec { @@ -17,10 +17,10 @@ stdenv.mkDerivation rec { owner = "mcrapet"; repo = "plowshare"; rev = "v${version}"; - sha256 = "1p8s60dlzaldp006yj710s371aan915asyjhd99188vrj4jj1x79"; + hash = "sha256-6fQgJZF5IxRSalB6rUpIVqlwhgbhSG8AuI2qTxswGt0="; }; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ makeBinaryWrapper ]; dontBuild = true; @@ -32,16 +32,15 @@ stdenv.mkDerivation rec { lib.makeBinPath [ curl recode - spidermonkey_115 + spidermonkey_140 ] }" done ''; meta = { - description = '' - A command-line download/upload tool for popular file sharing websites - ''; + description = "Command-line download/upload tool for popular file sharing websites"; + homepage = "https://github.com/mcrapet/plowshare"; license = lib.licenses.gpl3; maintainers = with lib.maintainers; [ aforemny ]; platforms = lib.platforms.linux;