nixpkgs/pkgs/development/tools/misc/objconv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
971 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, unzip }:
2015-02-08 05:12:16 +00:00
2016-06-27 01:57:45 +00:00
stdenv.mkDerivation rec {
pname = "objconv";
2022-09-06 01:41:12 +00:00
version = "2.54";
2015-02-08 05:12:16 +00:00
2017-03-12 21:45:40 +00:00
src = fetchurl {
# Versioned archive of objconv sources maintained by orivej.
url = "https://archive.org/download/objconv/${pname}-${version}.zip";
2022-09-06 01:41:12 +00:00
sha256 = "sha256-SDwnpPHc2NyctxKROrhjCDXs36WGj8js5blaQkUibWE=";
2015-02-08 05:12:16 +00:00
};
2017-03-12 21:45:40 +00:00
nativeBuildInputs = [ unzip ];
2015-02-08 05:12:16 +00:00
2017-03-12 21:45:40 +00:00
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
'';
2016-06-27 01:57:45 +00:00
meta = with lib; {
2017-03-12 21:45:40 +00:00
description = "Object and executable file converter, modifier and disassembler";
homepage = "https://www.agner.org/optimize/";
2016-06-27 01:57:45 +00:00
license = licenses.gpl2;
2017-03-12 21:45:40 +00:00
maintainers = with maintainers; [ orivej vrthra ];
platforms = platforms.unix;
2016-06-27 01:57:45 +00:00
};
2015-02-08 05:12:16 +00:00
}