From 72fe607771901908ffea7f69f1cef2c681f770c9 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Fri, 10 Jan 2025 10:54:35 +0100 Subject: [PATCH 1/4] wipe: reformat --- pkgs/by-name/wi/wipe/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/wi/wipe/package.nix b/pkgs/by-name/wi/wipe/package.nix index 3befb5541350d..27864e89ba6dd 100644 --- a/pkgs/by-name/wi/wipe/package.nix +++ b/pkgs/by-name/wi/wipe/package.nix @@ -22,12 +22,12 @@ stdenv.mkDerivation rec { patches = [ ./fix-install.patch ]; - meta = with lib; { + meta = { description = "Secure file wiping utility"; - mainProgram = "wipe"; homepage = "https://wipe.sourceforge.net/"; - license = licenses.gpl2Plus; - platforms = platforms.all; - maintainers = [ maintainers.abbradar ]; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.all; + maintainers = [ lib.maintainers.abbradar ]; + mainProgram = "wipe"; }; } From f292fa21d79a410a8d75808fd8a033edd11d8dd9 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 13 Jan 2025 13:59:20 +0100 Subject: [PATCH 2/4] wipe: Do not strip binary during install --- pkgs/by-name/wi/wipe/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/wi/wipe/package.nix b/pkgs/by-name/wi/wipe/package.nix index 27864e89ba6dd..889b6beaf0954 100644 --- a/pkgs/by-name/wi/wipe/package.nix +++ b/pkgs/by-name/wi/wipe/package.nix @@ -14,6 +14,12 @@ stdenv.mkDerivation rec { sha256 = "180snqvh6k6il6prb19fncflf2jcvkihlb4w84sbndcv1wvicfa6"; }; + postPatch = '' + # Do not strip binary during install + substituteInPlace Makefile.in \ + --replace-fail '$(INSTALL_BIN) -s' '$(INSTALL_BIN)' + ''; + nativeBuildInputs = [ autoreconfHook ]; # fdatasync is undocumented on darwin with no header file which breaks the build. From b4b3c73a946d7e20d7afcaba8e08cef87c4c1412 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 13 Jan 2025 14:00:32 +0100 Subject: [PATCH 3/4] wipe: Switch from sha256 to hash --- pkgs/by-name/wi/wipe/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/wi/wipe/package.nix b/pkgs/by-name/wi/wipe/package.nix index 889b6beaf0954..c707e5c022ac9 100644 --- a/pkgs/by-name/wi/wipe/package.nix +++ b/pkgs/by-name/wi/wipe/package.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://sourceforge/wipe/${version}/${pname}-${version}.tar.bz2"; - sha256 = "180snqvh6k6il6prb19fncflf2jcvkihlb4w84sbndcv1wvicfa6"; + hash = "sha256-RjkWNw+bNbs0QZwsCuPcTApHHbMuhZWvodFMAze2GqA="; }; postPatch = '' From 16238201caa1cb65e68f3dd7bfb0ec1f7152bf9c Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 14 Jan 2025 16:38:38 +0100 Subject: [PATCH 4/4] wipe: Set platform to Unix --- pkgs/by-name/wi/wipe/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/wi/wipe/package.nix b/pkgs/by-name/wi/wipe/package.nix index c707e5c022ac9..117a32fec6bb7 100644 --- a/pkgs/by-name/wi/wipe/package.nix +++ b/pkgs/by-name/wi/wipe/package.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation rec { description = "Secure file wiping utility"; homepage = "https://wipe.sourceforge.net/"; license = lib.licenses.gpl2Plus; - platforms = lib.platforms.all; + platforms = lib.platforms.unix; maintainers = [ lib.maintainers.abbradar ]; mainProgram = "wipe"; };