2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-07-24 12:14:16 +00:00
|
|
|
pname = "dejsonlz4";
|
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "avih";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
buildPhase = ''
|
|
|
|
${stdenv.cc.targetPrefix}cc -o dejsonlz4 src/dejsonlz4.c src/lz4.c
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp dejsonlz4 $out/bin/
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Decompress Mozilla Firefox bookmarks backup files";
|
|
|
|
homepage = "https://github.com/avih/dejsonlz4";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ mt-caret ];
|
|
|
|
platforms = platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "dejsonlz4";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
}
|