mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 09:43:11 +01:00
packages(osu-backgrounds): Simplify with fetchzip
This commit is contained in:
parent
c1eed0c69d
commit
bd1be6e67e
@ -1,6 +1,5 @@
|
||||
{ stdenvNoCC
|
||||
, fetchurl
|
||||
, unar
|
||||
, fetchzip
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
@ -8,187 +7,208 @@ stdenvNoCC.mkDerivation {
|
||||
version = "2024-03-30";
|
||||
|
||||
srcs = [
|
||||
(fetchurl {
|
||||
name = "2017-04-27 Spring 2017 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2017-04-27 Spring 2017 Fanart Contest Winners";
|
||||
url = "https://files.catbox.moe/nzn2d3.zip";
|
||||
hash = "sha256-1tNiBjOs4aO+UTE5FMEbPSl2p2/qMQMrbr1XONiNelQ=";
|
||||
hash = "sha256-ZiX1L5umRt9NSVT1r1XojDBpdwAcHcizWyi5Yjph2Ho=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2017-07-11 Mocha in Summer Fanart Contest All Entries.zip";
|
||||
(fetchzip {
|
||||
name = "2017-07-11 Mocha in Summer Fanart Contest All Entries";
|
||||
url = "https://assets.ppy.sh/contests/48/MochaFanartEntries.zip";
|
||||
hash = "sha256-IJrUh19IT+dvgfd2/7CuFB3OcnqZuwp1mBDDAhkSgbU=";
|
||||
hash = "sha256-T6JIXcl30AnWOu5Z/ZMmaXh9b9XnTLSXu+H5AbI2g2M=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2018-05-02 Spring 2018 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2018-05-02 Spring 2018 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/64/winners/osu%21%20Spring%20Fanart%202018%20Winners.zip";
|
||||
hash = "sha256-qtGuXVRYVUEbrHxhK7vJPqO1DyhtsGtmi+9qB6H7wi4=";
|
||||
hash = "sha256-JWpQMV5E4QfrRODsRH0GXy2C0eS/PpZvG2pCKQSwwug=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2018-08-09 Summer 2018 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2018-08-09 Summer 2018 Fanart Contest Winners";
|
||||
url = "https://files.catbox.moe/sy7yuq.zip";
|
||||
hash = "sha256-TYupEImxY2EoIgXj4igw7m5S509KCl5dnE216fZ2QF0=";
|
||||
hash = "sha256-9UDH45ILPKEA9kWrHrI3eabG6STJ8QZBdJeul/aCLpA=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2018-10-23 Halloween 2018 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2018-10-23 Halloween 2018 Fanart Contest Winners";
|
||||
url = "https://files.catbox.moe/0ibq8k.zip";
|
||||
hash = "sha256-pMRacfvfL8zy9mNAj8F3VMuPKBUPi8g2ckYyK+rWpsM=";
|
||||
hash = "sha256-lIXHZZaUyaWF3Ebna40P2UmNMym+MB8Pxp1O2OCexs4=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2018-12-12 Winter 2018 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2018-12-12 Winter 2018 Fanart Contest Winners";
|
||||
url = "https://files.catbox.moe/0iv4ib.zip";
|
||||
hash = "sha256-GYfZ7yjRFDV2gWEsKyFakXL/NRtD1KogKg1yf+3Q3/Q=";
|
||||
hash = "sha256-kfaXNOM+o+1/CAPLdiRX+E8HncIUA4U1rUbTdEJ18lE=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2019-06-03 Spring 2019 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2019-06-03 Spring 2019 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/78/winners/Spring2019-Winners.zip";
|
||||
hash = "sha256-6SCUR/JgrPBzmyfYlRe0KEuK3sDR+jO4BBKnrQT2sbY=";
|
||||
hash = "sha256-Bz4G+p3kXTpooFEu9/6+2MehkYsNeYCXyLAvKEXgIAQ=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2019-08-08 Summer 2019 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2019-08-08 Summer 2019 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/79/SummerFanart2019Winners.zip";
|
||||
hash = "sha256-uJcOf9Dn+J0Gtx4Rgbkz2AeJL/1jmJBeCDN9bi+lmQw=";
|
||||
hash = "sha256-QYJCATVqirzVJQV8B7WO/0rWsKQwvqCgUbP6cIqc4SU=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2019-10-30 Halloween 2019 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2019-10-30 Halloween 2019 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/81/winners/Halloween2019FanartWinners.zip";
|
||||
hash = "sha256-n6oVvv6oVTXhQ1Xo6MQOwdYNb0s8WBQvz/dBG5uqkJg=";
|
||||
hash = "sha256-O5LVrDuY47viLkdxmg0GVMVDp6nHs8EHjx1qsNayRKI=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2019-12-10 Winter 2019 Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2019-12-10 Winter 2019 Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/82/osu!Winter2019HQ.zip";
|
||||
hash = "sha256-vPJ/lXrcO93+TRCkdxYuIzUXzXNoutqfzSSTkNnROmA=";
|
||||
hash = "sha256-0WlRiZk81bnvYhkcPJTNBljLkkI3tMNDHF6nZ6nXuXE=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2020-04-24 Spring Indoors 2020 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2020-04-24 Spring Indoors 2020 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/92/winners/winners.zip";
|
||||
hash = "sha256-wMCKtxrYBvv8QNeF7Bs8a77ko1Pphp/wouCVCExy2oc=";
|
||||
hash = "sha256-uJjkb+M8GFDGyPqA/hhDKnjixKAaa/njW+6rGgq6Tg0=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2020-07-23 Summer Theme Park 2020 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2020-07-23 Summer Theme Park 2020 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/107/winners/winners.zip";
|
||||
hash = "sha256-iUUyf8naBUtD6KHMN4uRZ5EzeMTR26yCzRv4j7WY0Eg=";
|
||||
hash = "sha256-cY31joP8rTRNxx8lfx4qVmIuoy71TwMSNXystmkPGpA=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2020-10-11 Halloween 2020 Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2020-10-11 Halloween 2020 Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/112/Halloween2020Finalists.zip";
|
||||
hash = "sha256-1YV6SbjjhxuX1gaHU/8FNXX4TYjyEto8mAxTc6B7tJE=";
|
||||
hash = "sha256-oUYdw+lzTosSDeyW0jenfaURvf0AlA0SxQyq3uXgZh4=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2020-12-02 Winter Sports 2020 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2020-12-02 Winter Sports 2020 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/114/winners/WinterSports2020Winners.zip";
|
||||
hash = "sha256-sa0J41XaserkhFspc4IDBUcxN59INIE2y086Ke9N0IM=";
|
||||
hash = "sha256-vIe3Bj4GVpPBNSxJeoRPXtgKxC7Eh7Rl0m4SGCp95zk=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2021-05-20 Spring 2021 Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2021-05-20 Spring 2021 Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/125/winners/SpringFanart2021-Winners.zip";
|
||||
hash = "sha256-vbHoCErTpD8nF1YpT2f1k6Mt1Rb7bN6Oy7FeIIyVN48=";
|
||||
hash = "sha256-EGpHIID4ZnKoH2SnwAXNKiHE4JT9KrG6hwKGTuos+X8=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2021-08-23 Summer 2021 Track and Field Fanart Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2021-08-23 Summer 2021 Track and Field Fanart Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/133/winners/Summer2021TFWinners.zip";
|
||||
hash = "sha256-/KbK/BpJY+GIoVRLXghDMRoQfBfR978QMk/gkd1DnZM=";
|
||||
hash = "sha256-P/N2Kycb3CJNbm4KzXXkRdNnExaKPAFSG+UG/cG9sSQ=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2021-10-27 Halloween 2021 Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2021-10-27 Halloween 2021 Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/135/winners/Halloween2021FanartFinalists.zip";
|
||||
hash = "sha256-FUfct24QJi9UzWqqYt0jL8wCJePr3DhT6D2j8lCbe3U=";
|
||||
hash = "sha256-HwxT5dpG7ljtfJcAxKm+VfYLwjxhfbqHvq9MC57SVds=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2021-12-17 Winter 2021 Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2021-12-17 Winter 2021 Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/136/winners/Winter2021FanartContestFinalists.zip";
|
||||
hash = "sha256-Ai+06/C0ETa5Dl9XKnvL0kqdMjkvErSIxowC9vZp3x4=";
|
||||
hash = "sha256-BnOIgNXVaDQsn/B7v+1HJwYKQGNiVjxue8g9C8zFGYM=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2022-05-08 A Place To Belong Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2022-05-08 A Place To Belong Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/142/APTB2022-Finalists.zip";
|
||||
hash = "sha256-H1dBp4gqbN+aeEo9MhYE5mlvnPwc/mitXI/xI2wwG90=";
|
||||
hash = "sha256-o0mPxETcjHzY60hTX+M+hIssTh+xF0rXy2iYpZoF/HE=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2022-09-15 15th Anniversary Art Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2022-09-15 15th Anniversary Art Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/153/winners/osu15anniversaryfinalists.zip";
|
||||
hash = "sha256-Ye5Bqr5LoM4ZQJ4NMvseR+RQtL2+H4tqW9wNpR6PISw=";
|
||||
hash = "sha256-ffO8LFSSLL6mf+dqau0M14/Ikv/ZEgpYvk8zmUauVKU=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2022-10-29 Halloween 2022 Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2022-10-29 Halloween 2022 Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/154/winners/Halloween2022FanartFinalists.zip";
|
||||
hash = "sha256-7QHg7KPr6g6ntXkfgFDZI+vxbMyYnVpUcG+iq/c9wwk=";
|
||||
hash = "sha256-XYIGoobZoVOcWW4l3acH7ZzLojLzM13WUi0iH+/1enM=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2022-12-31 New Beginnings Art Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2022-12-31 New Beginnings Art Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/160/NewBeginningsFinalists.zip";
|
||||
hash = "sha256-EnYcB0izBdJd6u1yrBf39yyUq90I0HvtVTY9K3cwtr0=";
|
||||
hash = "sha256-U3iGUFDuS1B27Mgf6rqqh9hl/qwJw2yVxjxh5PrTGdA=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2023-05-01 Journey into a Beatmap World Art Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2023-05-01 Journey into a Beatmap World Art Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/175/JIBW2023-Winners.zip";
|
||||
hash = "sha256-/cQz5nCH1y42koaRldtNaekVOPENXDLJ51HVzMYKhFY=";
|
||||
hash = "sha256-zOolYDj5IPm0Qrv3EbCd36ScJPOG9nTvHkxrQDTZlsw=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2023-07-27 Beach Episode Art Contest Winners.zip";
|
||||
(fetchzip {
|
||||
name = "2023-07-27 Beach Episode Art Contest Winners";
|
||||
url = "https://assets.ppy.sh/contests/179/winners/BeachEpisode2023Winners.zip";
|
||||
hash = "sha256-c/f+vZ+CmGf+Ov+mpMkuN7ICXCmNFnLfS/9RZLU18s0=";
|
||||
hash = "sha256-2o+hGjr4h3Upg7NBj1pQ4GI3D771tj1Xgk+o2Lv29as=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2023-10-22 Halloween 2023 Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2023-10-22 Halloween 2023 Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/186/Halloween2023Finalists.zip";
|
||||
hash = "sha256-PuqK+tz9OXE2KsXIDi59WZ8aGs6V7MFNrlxWs5TYQZY=";
|
||||
hash = "sha256-hRBhRKZ5hMzviNVnH9BhVU1LDazt5W0ljpvszWwungE=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2023-12-07 Winter 2023 Fanart Contest Finalists.zip";
|
||||
(fetchzip {
|
||||
name = "2023-12-07 Winter 2023 Fanart Contest Finalists";
|
||||
url = "https://assets.ppy.sh/contests/189/WinterFanart2023Finalists.zip";
|
||||
hash = "sha256-vFLh8cYQSHAa17/AAW6F11pY+I6Wy/rp+UYboC+GY1M=";
|
||||
hash = "sha256-tcK51nqncNWHiIng1WEJWCQS/F/SQQB12uj5HGd9kmE=";
|
||||
stripRoot = false;
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "2024-03-30 Spring 2024 Fanart Contest All Entries.zip";
|
||||
(fetchzip {
|
||||
name = "2024-03-30 Spring 2024 Fanart Contest All Entries";
|
||||
url = "https://assets.ppy.sh/contests/205/Spring2024FanartSubmissions.zip";
|
||||
hash = "sha256-UraexvnbKy6465YiR7+Chz4cTGEbPMum8CAf08PmM7A=";
|
||||
hash = "sha256-xGAj45J6F4V8E0BdI0w6xdfxmbQVH9nGwyvCusTWkUg=";
|
||||
stripRoot = false;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ unar ];
|
||||
|
||||
unpackPhase = /* bash */ ''
|
||||
runHook preUnpack
|
||||
|
||||
for _src in $srcs; do
|
||||
cp "$_src" $(stripHash "$_src")
|
||||
unar $(stripHash "$_src")
|
||||
done
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = /* bash */ ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/backgrounds
|
||||
cp -r */ $out/share/backgrounds
|
||||
BASE="2024-03-30-Spring-2024-Fanart-Contest-All-Entries"
|
||||
DIR="Spring2024FanartSubmissions"
|
||||
|
||||
mv $BASE/$DIR . && rm -r $BASE && mv $DIR $BASE
|
||||
|
||||
mkdir -p $out
|
||||
cp -r */ $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user