use overrideAttrs instead of a new derivation
This commit is contained in:
parent
ef3394a6c8
commit
0094b20a4d
1 changed files with 22 additions and 20 deletions
|
@ -1,12 +1,16 @@
|
||||||
{ stdenv, fetchgit, lib }: let
|
{
|
||||||
src = builtins.fromJSON (builtins.readFile ./source.json);
|
stdenv,
|
||||||
in stdenv.mkDerivation {
|
fetchgit,
|
||||||
pname = "lotte-art";
|
lib,
|
||||||
version = src.date;
|
}: let
|
||||||
|
srcInfo = builtins.fromJSON (builtins.readFile ./source.json);
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
inherit (src) url rev sha256 fetchLFS fetchSubmodules deepClone leaveDotGit;
|
inherit (srcInfo) url rev sha256 fetchLFS fetchSubmodules deepClone leaveDotGit;
|
||||||
};
|
};
|
||||||
preferLocalBuild = true;
|
in
|
||||||
|
src.overrideAttrs (_: {
|
||||||
|
pname = "lotte-art";
|
||||||
|
version = srcInfo.date;
|
||||||
passthru.updateScript = [
|
passthru.updateScript = [
|
||||||
../../scripts/update-git.sh
|
../../scripts/update-git.sh
|
||||||
"https://git.chir.rs/darkkirb/lotte-art"
|
"https://git.chir.rs/darkkirb/lotte-art"
|
||||||
|
@ -17,6 +21,4 @@ in stdenv.mkDerivation {
|
||||||
description = "Art I commissioned (mostly)";
|
description = "Art I commissioned (mostly)";
|
||||||
license = lib.licenses.cc-by-nc-sa-40;
|
license = lib.licenses.cc-by-nc-sa-40;
|
||||||
};
|
};
|
||||||
buildPhase = "true";
|
})
|
||||||
installPhase = "cp -r $src $out";
|
|
||||||
}
|
|
||||||
|
|
Reference in a new issue