btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / gu / guile-lzma / package.nix
blob9f7b941f068f8e0ec4f5169713afb62f207f7273
1 { stdenv
2 , lib
3 , fetchurl
4 , xz
5 , pkg-config
6 , guile
7 , scheme-bytestructures
8 }:
10 stdenv.mkDerivation rec {
11   pname = "guile-lzma";
12   version = "0.1.1";
14   src = fetchurl {
15     url = "https://files.ngyro.com/guile-lzma/guile-lzma-${version}.tar.gz";
16     hash = "sha256-K4ZoltZy7U05AI9LUzZ1DXiXVgoGZ4Nl9cWnK9L8zl4=";
17   };
19   strictDeps = true;
20   nativeBuildInputs = [
21     guile
22     pkg-config
23   ];
24   buildInputs = [ guile ];
25   propagatedBuildInputs = [ xz ];
26   propagatedNativeBuildInputs = [ scheme-bytestructures ];
28   doCheck = true;
30   # In procedure bytevector-u8-ref: Argument 2 out of range
31   dontStrip = stdenv.hostPlatform.isDarwin;
33   meta = with lib; {
34     homepage = "https://ngyro.com/software/guile-lzma.html";
35     description = "Guile wrapper for lzma library";
36     license = licenses.gpl3Plus;
37     maintainers = with maintainers; [ foo-dogsquared ];
38     platforms = guile.meta.platforms;
39   };