diff options
author | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-04-12 14:27:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 14:27:00 -0500 |
commit | 29bc5237333663b8cd2e8ed97b37dae84f26f150 (patch) | |
tree | 1a4c8b23554738e0e697cf1b5f4c98c0773bae46 /pkgs/tools/compression | |
parent | 39da015578c3b28e6f4d030d43937af759212383 (diff) | |
parent | 59bcd129e5a89dfcc49703de4499d9d83ed4305b (diff) | |
download | nixpkgs-29bc5237333663b8cd2e8ed97b37dae84f26f150.tar nixpkgs-29bc5237333663b8cd2e8ed97b37dae84f26f150.tar.gz nixpkgs-29bc5237333663b8cd2e8ed97b37dae84f26f150.tar.bz2 nixpkgs-29bc5237333663b8cd2e8ed97b37dae84f26f150.tar.lz nixpkgs-29bc5237333663b8cd2e8ed97b37dae84f26f150.tar.xz nixpkgs-29bc5237333663b8cd2e8ed97b37dae84f26f150.tar.zst nixpkgs-29bc5237333663b8cd2e8ed97b37dae84f26f150.zip |
Merge pull request #38865 from matthewbauer/darwin-security-fixes
[darwin] Security fixes
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r-- | pkgs/tools/compression/pbzx/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/compression/pbzx/default.nix b/pkgs/tools/compression/pbzx/default.nix new file mode 100644 index 00000000000..bbba21f2b34 --- /dev/null +++ b/pkgs/tools/compression/pbzx/default.nix @@ -0,0 +1,27 @@ +{stdenv, lib, fetchFromGitHub, lzma, xar}: + +stdenv.mkDerivation rec { + pname = "pbzx"; + version = "1.0.2"; + name = "${pname}-${version}"; + 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 ]; + }; +} |