1 { lib, stdenv, fetchurl, unzip }:
3 stdenv.mkDerivation rec {
8 # Versioned archive of objconv sources maintained by orivej.
9 url = "https://archive.org/download/objconv/${pname}-${version}.zip";
10 sha256 = "sha256-SDwnpPHc2NyctxKROrhjCDXs36WGj8js5blaQkUibWE=";
13 nativeBuildInputs = [ unzip ];
15 outputs = [ "out" "doc" ];
24 buildPhase = "c++ -o objconv -O2 *.cpp";
27 mkdir -p $out/bin $out/doc/objconv
29 mv objconv-instructions.pdf $out/doc/objconv
33 description = "Object and executable file converter, modifier and disassembler";
34 mainProgram = "objconv";
35 homepage = "https://www.agner.org/optimize/";
36 license = licenses.gpl2;
37 maintainers = with maintainers; [ orivej vrthra ];
38 platforms = platforms.unix;