1{ lib
2, stdenv
3, fetchFromGitHub
4, guile
5, autoreconfHook
6, pkg-config
7}:
8
9stdenv.mkDerivation rec {
10 pname = "scheme-bytestructures";
11 version = "1.0.10";
12
13 src = fetchFromGitHub {
14 owner = "TaylanUB";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "04oDvwvzTRzAVyywbcCm3Ug3p3xNbxjI7nOKYakEZZI=";
18 };
19
20 postConfigure = ''
21 sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site%' Makefile;
22 sed -i '/godir\s*=/s%=.*%=''${out}/share/guile/ccache%' Makefile;
23 '';
24
25 nativeBuildInputs = [
26 autoreconfHook pkg-config
27 ];
28 buildInputs = [
29 guile
30 ];
31
32 meta = with lib; {
33 description = "Structured access to bytevector contents";
34 homepage = "https://github.com/TaylanUB/scheme-bytestructures";
35 license = licenses.gpl3Plus;
36 maintainers = with maintainers; [ ethancedwards8 ];
37 platforms = platforms.unix;
38 };
39}