mozlz4a: 2018-08-23 -> 2022-03-19

This commit is contained in:
Kira Bruneau 2023-08-28 14:13:43 -04:00
parent 11f19b5804
commit 50f2c1836f

View file

@ -1,16 +1,23 @@
{ lib, stdenv, fetchurl, python3, runtimeShell }:
{ lib
, stdenv
, fetchurl
, python3
, runtimeShell
}:
stdenv.mkDerivation rec {
pname = "mozlz4a";
version = "2018-08-23";
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
version = "2022-03-19";
src = fetchurl {
url = "https://gist.githubusercontent.com/kaefer3000/73febe1eec898cd50ce4de1af79a332a/raw/a266410033455d6b4af515d7a9d34f5afd35beec/mozlz4a.py";
sha256 = "1d1ai062kdms34bya9dlykkx011rj8d8nh5l7d76xj8k9kv4ssq6";
url = "https://gist.githubusercontent.com/Tblue/62ff47bef7f894e92ed5/raw/c12fce199a97ecb214eb913cc5d762eac2e92c57/mozlz4a.py";
hash = "sha256-Igj9u6TmV+nIuSg8gI8zD4hTb/Iiog/3aB3DDk0Lqkg=";
};
dontUnpack = true;
buildInputs = [ python3 python3.pkgs.lz4 ];
installPhase = ''
mkdir -p "$out/bin" "$out/${python3.sitePackages}/"
cp "${src}" "$out/${python3.sitePackages}/mozlz4a.py"
@ -21,13 +28,11 @@ stdenv.mkDerivation rec {
chmod a+x "$out/bin/mozlz4a"
'';
buildInputs = [ python3 python3.pkgs.lz4 ];
meta = {
description = "A script to handle Mozilla's mozlz4 files";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.raskin lib.maintainers.pshirshov lib.maintainers.kira-bruneau ];
platforms = lib.platforms.unix;
homepage = "https://gist.githubusercontent.com/Tblue/62ff47bef7f894e92ed5";
meta = with lib; {
description = "MozLz4a compression/decompression utility";
license = licenses.bsd2;
maintainers = with maintainers; [ kira-bruneau pshirshov raskin ];
platforms = python3.meta.platforms;
homepage = "https://gist.github.com/Tblue/62ff47bef7f894e92ed5";
};
}