@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub }:
2+stdenv.mkDerivation rec {
3+ pname = "dejsonlz4";
4+ version = "1.1";
5+ src = fetchFromGitHub {
6+ owner = "avih";
7+ repo = pname;
8+ rev = "v${version}";
9+ sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh";
10+ };
11+
12+ buildPhase = ''
13+ gcc -Wall -o dejsonlz4 src/dejsonlz4.c src/lz4.c
14+ '';
15+
16+ installPhase = ''
17+ mkdir -p $out/bin/
18+ cp dejsonlz4 $out/bin/
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = "Decompress Mozilla Firefox bookmarks backup files";
23+ homepage = https://github.com/avih/dejsonlz4;
24+ license = licenses.bsd2;
25+ maintainers = with maintainers; [ mt-caret ];
26+ platforms = platforms.linux;
27+ };
28+ }