2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2019-10-23 14:38:51 +00:00
|
|
|
, python3
|
|
|
|
, popt
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "isomd5sum";
|
2024-06-26 01:09:29 +00:00
|
|
|
version = "1.2.5";
|
2019-10-23 14:38:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhinstaller";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-26 01:09:29 +00:00
|
|
|
sha256 = "sha256-c/4CQtAzatfG1Z3SfyB2OZmfJRMnyrZZTqSApsK7R+Q=";
|
2019-10-23 14:38:51 +00:00
|
|
|
};
|
|
|
|
|
2021-07-01 19:17:55 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
|
|
buildInputs = [ popt ] ;
|
2019-10-23 14:38:51 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace "#/usr/" "#"
|
|
|
|
substituteInPlace Makefile --replace "/usr/" "/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
# we don't install python stuff as it borks up directories
|
2019-11-04 12:33:53 +00:00
|
|
|
installTargets = [ "install-bin" "install-devel" ];
|
2019-10-23 14:38:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rhinstaller/isomd5sum";
|
2019-10-23 14:38:51 +00:00
|
|
|
description = "Utilities for working with md5sum implanted in ISO images";
|
|
|
|
platforms = platforms.linux;
|
2024-04-26 11:35:31 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-10-23 14:38:51 +00:00
|
|
|
maintainers = with maintainers; [ knl ];
|
|
|
|
};
|
|
|
|
}
|