From dfcec283ac876528ad381cdb21627747934371d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 25 Sep 2022 15:52:40 +0100 Subject: [PATCH] correct the name of lotte-art --- art/lotte/default.nix | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/art/lotte/default.nix b/art/lotte/default.nix index a9d2daa..0c81b41 100644 --- a/art/lotte/default.nix +++ b/art/lotte/default.nix @@ -1,24 +1,20 @@ -{ - stdenv, - fetchgit, - lib, -}: let +{ stdenv, fetchgit, lib }: let srcInfo = builtins.fromJSON (builtins.readFile ./source.json); src = fetchgit { inherit (srcInfo) url rev sha256 fetchLFS fetchSubmodules deepClone leaveDotGit; }; -in - src.overrideAttrs (_: { - pname = "lotte-art"; - version = srcInfo.date; - passthru.updateScript = [ - ../../scripts/update-git.sh - "https://git.chir.rs/darkkirb/lotte-art" - "art/lotte/source.json" - "--fetch-lfs" - ]; - meta = { - description = "Art I commissioned (mostly)"; - license = lib.licenses.cc-by-nc-sa-40; - }; - }) +in src.overrideAttrs (_: rec { + name = "${pname}-${version}"; + pname = "lotte-art"; + version = srcInfo.date; + passthru.updateScript = [ + ../../scripts/update-git.sh + "https://git.chir.rs/darkkirb/lotte-art" + "art/lotte/source.json" + "--fetch-lfs" + ]; + meta = { + description = "Art I commissioned (mostly)"; + license = lib.licenses.cc-by-nc-sa-40; + }; +})