objconv: 2.16 -> 2.44

This commit is contained in:
Orivej Desh 2017-03-12 21:45:40 +00:00
parent af6677e8b5
commit cf3e138024

View File

@ -1,26 +1,39 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "objconv-${version}"; name = "objconv-${version}";
version = "2.16"; version = "2.44";
src = fetchFromGitHub { src = fetchurl {
owner = "vertis"; # Versioned archive of objconv sources maintained by orivej.
repo = "objconv"; url = "https://archive.org/download/objconv/${name}.zip";
rev = "${version}"; sha256 = "1dlnpv8qwz0rwivpbgk84kmsjz3vh1i149z44ha2dvg8afzyfhjl";
sha256 = "1by2bbrampwv0qy8vn4hhs49rykczyj7q8g373ym38da3c95bym2";
}; };
buildPhase = "c++ -o objconv -O2 src/*.cpp"; nativeBuildInputs = [ unzip ];
installPhase = "mkdir -p $out/bin && mv objconv $out/bin"; outputs = [ "out" "doc" ];
unpackPhase = ''
mkdir -p "$name"
cd "$name"
unpackFile "$src"
unpackFile source.zip
'';
buildPhase = "c++ -o objconv -O2 *.cpp";
installPhase = ''
mkdir -p $out/bin $out/doc/objconv
mv objconv $out/bin
mv objconv-instructions.pdf $out/doc/objconv
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Used for converting object files between COFF/PE, OMF, ELF and Mach-O formats for all 32-bit and 64-bit x86 platforms."; description = "Object and executable file converter, modifier and disassembler";
homepage = http://www.agner.org/optimize/; homepage = http://www.agner.org/optimize/;
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ vrthra ]; maintainers = with maintainers; [ orivej vrthra ];
platforms = with platforms; unix; platforms = platforms.unix;
}; };
} }