@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub
2+, python3
3+, popt
4+}:
5+
6+stdenv.mkDerivation rec {
7+ pname = "isomd5sum";
8+ version = "1.2.3";
9+
10+ src = fetchFromGitHub {
11+ owner = "rhinstaller";
12+ repo = pname;
13+ rev = version;
14+ sha256 = "1wjnh2hlp1hjjm4a8wzdhdrm73jq41lmpmy3ls0rh715p3j7z4q9";
15+ };
16+
17+ buildInputs = [ python3 popt ] ;
18+
19+ postPatch = ''
20+ substituteInPlace Makefile --replace "#/usr/" "#"
21+ substituteInPlace Makefile --replace "/usr/" "/"
22+ '';
23+
24+ dontConfigure = true;
25+
26+ makeFlags = [ "DESTDIR=${placeholder "out"}" ];
27+
28+ # we don't install python stuff as it borks up directories
29+ installTargets = "install-bin install-devel";
30+
31+ meta = with stdenv.lib; {
32+ homepage = https://github.com/rhinstaller/isomd5sum;
33+ description = "Utilities for working with md5sum implanted in ISO images";
34+ platforms = platforms.linux;
35+ license = licenses.gpl2;
36+ maintainers = with maintainers; [ knl ];
37+ };
38+}