build-bazel-package: added rm of extra local folders for toolchain configuration...
[NixPkgs.git] / pkgs / tools / compression / bzip2 / 1_1.nix
blobc39868078bdae005f87d9b41b93ab6c795b6dde6
2   lib,
3   stdenv,
4   fetchFromGitLab,
5   meson,
6   python3,
7   ninja,
8   testers,
9 }:
11 stdenv.mkDerivation (finalAttrs: {
12   pname = "bzip2-unstable";
13   version = "2020-08-11";
15   src = fetchFromGitLab {
16     owner = "federicomenaquintero";
17     repo = "bzip2";
18     rev = "15255b553e7c095fb7a26d4dc5819a11352ebba1";
19     hash = "sha256-BAyz35D62LWi47B/gNcCSKpdaECHBGSpt21vtnk3fKs=";
20   };
22   postPatch = ''
23     patchShebangs install_links.py
24   '';
26   nativeBuildInputs = [
27     meson
28     python3
29     ninja
30   ];
32   outputs = [
33     "bin"
34     "dev"
35     "out"
36     "man"
37   ];
39   mesonFlags = [
40     "-Ddocs=disabled"
41   ];
43   strictDeps = true;
45   passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
47   meta = with lib; {
48     description = "High-quality data compression program";
49     license = licenses.bsdOriginal;
50     pkgConfigModules = [ "bz2" ];
51     platforms = platforms.all;
52     maintainers = [ ];
53   };