mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
290a5d916e
Based on "problems" from repology: https://repology.org/repository/nix_unstable/problems Mostly simple changes to reflect redirects.
40 lines
970 B
Nix
40 lines
970 B
Nix
{ stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "objconv-${version}";
|
|
version = "2.51";
|
|
|
|
src = fetchurl {
|
|
# Versioned archive of objconv sources maintained by orivej.
|
|
url = "https://archive.org/download/objconv/${name}.zip";
|
|
sha256 = "0wp6ld9vk11f4nnkn56627zmlv9k5vafi99qa3yyn1pgcd61zcfs";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
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; {
|
|
description = "Object and executable file converter, modifier and disassembler";
|
|
homepage = https://www.agner.org/optimize/;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ orivej vrthra ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|