nixpkgs/pkgs/tools/compression/pbzx/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
651 B
Nix

{stdenv, lib, fetchFromGitHub, lzma, xar}:
stdenv.mkDerivation rec {
pname = "pbzx";
version = "1.0.2";
src = fetchFromGitHub {
owner = "NiklasRosenstein";
repo = "pbzx";
rev = "v${version}";
sha256 = "0bwd7wmnhpz1n5p39mh6asfyccj4cm06hwigslcwbb3pdwmvxc90";
};
buildInputs = [ lzma xar ];
buildPhase = ''
cc pbzx.c -llzma -lxar -o pbzx
'';
installPhase = ''
mkdir -p $out/bin
cp pbzx $out/bin
'';
meta = with lib; {
description = "Stream parser of Apple's pbzx compression format.";
platforms = platforms.unix;
license = licenses.gpl3;
maintainers = [ maintainers.matthewbauer ];
};
}