Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 746 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "dejsonlz4"; 9 version = "1.1"; 10 11 src = fetchFromGitHub { 12 owner = "avih"; 13 repo = "dejsonlz4"; 14 rev = "v${version}"; 15 sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh"; 16 }; 17 18 buildPhase = '' 19 ${stdenv.cc.targetPrefix}cc -o dejsonlz4 src/dejsonlz4.c src/lz4.c 20 ''; 21 22 installPhase = '' 23 mkdir -p $out/bin/ 24 cp dejsonlz4 $out/bin/ 25 ''; 26 27 meta = with lib; { 28 description = "Decompress Mozilla Firefox bookmarks backup files"; 29 homepage = "https://github.com/avih/dejsonlz4"; 30 license = licenses.bsd2; 31 maintainers = with maintainers; [ mt-caret ]; 32 platforms = platforms.all; 33 mainProgram = "dejsonlz4"; 34 }; 35}