dejsonlz4: cleanup
This commit is contained in:
parent
7c49b4143c
commit
a2d112eb4b
1 changed files with 25 additions and 23 deletions
|
@ -1,28 +1,30 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dejsonlz4";
|
||||
version = "1.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "avih";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh";
|
||||
};
|
||||
pname = "dejsonlz4";
|
||||
version = "1.1";
|
||||
|
||||
buildPhase = ''
|
||||
${stdenv.cc.targetPrefix}cc -o dejsonlz4 src/dejsonlz4.c src/lz4.c
|
||||
'';
|
||||
src = fetchFromGitHub {
|
||||
owner = "avih";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0ggs69qamaama5mid07mhp95m1x42wljdb953lrwfr7p8p6f8czh";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin/
|
||||
cp dejsonlz4 $out/bin/
|
||||
'';
|
||||
buildPhase = ''
|
||||
${stdenv.cc.targetPrefix}cc -o dejsonlz4 src/dejsonlz4.c src/lz4.c
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin/
|
||||
cp dejsonlz4 $out/bin/
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue