git.iko.soy/typeable/nixpkgs
on master help sign in
isomd5sum: init at 1.2.3

Adds isomd5sum as a package. This nifty utility helps with modifying ISO files, specifically MD5 sums embedded in them.

commitaeb0fc45e2591981167030cd86a3b8f4af097f72 authorNikola Knezevic <nikola@knezevic.ch> dateWed 23 Oct 2019, 16:38 (7 years ago) parenta2aeec6
2 files changed+40
pkgs/tools/cd-dvd/isomd5sum/default.nix+38 pkgs/top-level/all-packages.nix+2
pkgs/tools/cd-dvd/isomd5sum/default.nixnew file+38
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -2207,6 +2207,8 @@ in
22072207 inherit (darwin.apple_sdk.frameworks) Carbon IOKit;
22082208 };
22092209
2210+ isomd5sum = callPackage ../tools/cd-dvd/isomd5sum { };
2211+
22102212 mdf2iso = callPackage ../tools/cd-dvd/mdf2iso { };
22112213
22122214 nrg2iso = callPackage ../tools/cd-dvd/nrg2iso { };