nix-packages/art/lotte/default.nix

26 lines
621 B
Nix
Raw Normal View History

2022-09-25 16:06:38 +00:00
{
stdenv,
fetchgit,
lib,
}: let
srcInfo = builtins.fromJSON (builtins.readFile ./source.json);
2022-09-25 14:46:19 +00:00
src = fetchgit {
inherit (srcInfo) url rev sha256 fetchLFS fetchSubmodules deepClone leaveDotGit;
2022-09-25 14:46:19 +00:00
};
2022-09-25 16:06:38 +00:00
in
src.overrideAttrs (_: rec {
name = "${pname}-${version}";
pname = "lotte-art";
version = srcInfo.date;
passthru.updateScript = [
../../scripts/update-git.sh
2023-09-23 18:16:06 +00:00
"https://git.chir.rs/DarkKirb/lotte-art"
2022-09-25 16:06:38 +00:00
"art/lotte/source.json"
"--fetch-lfs"
];
meta = {
description = "Art I commissioned (mostly)";
license = lib.licenses.cc-by-nc-sa-40;
};
})