2022-12-31 12:10:26 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
jdk,
|
|
|
|
jre,
|
|
|
|
swt,
|
|
|
|
makeWrapper,
|
|
|
|
xorg,
|
|
|
|
dpkg,
|
2024-08-29 17:37:07 +00:00
|
|
|
gtk3,
|
|
|
|
glib,
|
2022-12-31 12:10:26 +00:00
|
|
|
}:
|
2019-11-25 23:56:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ipscan";
|
2023-08-30 14:09:38 +00:00
|
|
|
version = "3.9.1";
|
2019-11-25 23:56:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-30 14:03:17 +00:00
|
|
|
url = "https://github.com/angryip/ipscan/releases/download/${version}/ipscan_${version}_amd64.deb";
|
2023-08-30 14:09:38 +00:00
|
|
|
hash = "sha256-UPkUwZV3NIeVfL3yYvqOhm4X5xW+40GOlZGy8WGhYmk=";
|
2019-11-25 23:56:29 +00:00
|
|
|
};
|
|
|
|
|
2024-11-26 20:00:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
dpkg
|
|
|
|
makeWrapper
|
|
|
|
];
|
2022-12-31 12:10:26 +00:00
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
buildInputs = [ jdk ];
|
2019-11-25 23:56:29 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share
|
2023-08-30 14:03:17 +00:00
|
|
|
cp usr/lib/ipscan/ipscan-linux64-${version}.jar $out/share/${pname}-${version}.jar
|
2019-11-25 23:56:29 +00:00
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/ipscan \
|
2024-08-29 17:37:07 +00:00
|
|
|
--prefix LD_LIBRARY_PATH : "$out/lib/:${
|
|
|
|
lib.makeLibraryPath [
|
|
|
|
swt
|
|
|
|
xorg.libXtst
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
]
|
|
|
|
}" \
|
2019-11-25 23:56:29 +00:00
|
|
|
--add-flags "-Xmx256m -cp $out/share/${pname}-${version}.jar:${swt}/jars/swt.jar net.azib.ipscan.Main"
|
|
|
|
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp usr/share/applications/ipscan.desktop $out/share/applications/ipscan.desktop
|
|
|
|
substituteInPlace $out/share/applications/ipscan.desktop --replace "/usr/bin" "$out/bin"
|
|
|
|
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
cp usr/share/pixmaps/ipscan.png $out/share/pixmaps/ipscan.png
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-08-30 14:10:10 +00:00
|
|
|
description = "Angry IP Scanner - fast and friendly network scanner";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "ipscan";
|
2020-03-18 07:20:53 +00:00
|
|
|
homepage = "https://angryip.org";
|
2023-08-30 14:10:10 +00:00
|
|
|
downloadPage = "https://github.com/angryip/ipscan/releases/tag/${version}";
|
2022-12-31 12:10:26 +00:00
|
|
|
changelog = "https://github.com/angryip/ipscan/blob/${version}/CHANGELOG";
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2022-12-31 12:10:26 +00:00
|
|
|
license = licenses.gpl2Only;
|
2019-11-25 23:56:29 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2023-08-30 14:10:10 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
kylesferrazza
|
|
|
|
totoroot
|
|
|
|
];
|
2019-11-25 23:56:29 +00:00
|
|
|
};
|
|
|
|
}
|