Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
scratch # Scratch
];
}
Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
scratch # Scratch
];
}
Package Definition
{
"pname": "scratch",
"version": "3.29.1",
"src": {
"url": "https://downloads.scratch.mit.edu/desktop/Scratch%203.29.1.dmg",
"sha256": "0032867c2eb6885e1e1f3e24fe24f37fc5a12c3e995825f8eea5630eb8052860"
},
"installPhase": [
"mkdir -p \"$out/Applications/Scratch 3.app\" && cp -r \"Scratch 3.app\" \"$out/Applications\""
],
"meta": {
"description": "Programmes interactive stories, games, and animations",
"homepage": "https://scratch.mit.edu/download"
}
}