summary refs log tree commit diff
path: root/pkgs/tools/compression/dejsonlz4/default.nix
blob: 53b968c5134bc7367f23a6845bd77428d2e4645c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
    pname = "dejsonlz4";
    version = "1.1";
    src = fetchFromGitHub {
      owner = "avih";
      repo = pname;
      rev = "v${version}";
      sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh";
    };

    buildPhase = ''
      gcc -Wall -o dejsonlz4 src/dejsonlz4.c src/lz4.c
    '';

    installPhase = ''
      mkdir -p $out/bin/
      cp dejsonlz4 $out/bin/
    '';

    meta = with stdenv.lib; {
      description = "Decompress Mozilla Firefox bookmarks backup files";
      homepage = https://github.com/avih/dejsonlz4;
      license = licenses.bsd2;
      maintainers = with maintainers; [ mt-caret ];
      platforms = platforms.linux;
    };
  }