mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
use app version data from nixpkgs
This commit is contained in:
parent
cbdc59d591
commit
3daf2339f3
9 changed files with 1213 additions and 223 deletions
|
|
@ -1,7 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
logging-extractor,
|
||||
fetchzip,
|
||||
fetchurl,
|
||||
name,
|
||||
version,
|
||||
url,
|
||||
|
|
@ -9,6 +11,12 @@
|
|||
sha256,
|
||||
mode ? "json",
|
||||
}: let
|
||||
inherit (builtins) substring stringLength;
|
||||
getExt = path: substring (stringLength path - 3) (-1) path;
|
||||
extractor =
|
||||
if ((getExt url) == "zip")
|
||||
then fetchzip
|
||||
else fetchurl;
|
||||
ext =
|
||||
if mode == "rust"
|
||||
then "rs"
|
||||
|
|
@ -19,7 +27,7 @@ in
|
|||
pname = "extractor-logs-${name}-${cleanedMajor}";
|
||||
inherit version;
|
||||
|
||||
src = fetchzip {
|
||||
src = extractor {
|
||||
inherit url sha256;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue