push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
{
lib,
stdenv,
fetchFromGitHub,
mono,
}:
stdenv.mkDerivation {
pname = "wavefunctioncollapse";
version = "0.0pre20170130";
src = fetchFromGitHub {
owner = "mxgmn";
repo = "WaveFunctionCollapse";
rev = "ef660c037b1d7c4ebce66efc625af2bb2f2111c0";
sha256 = "1dr5fvdgn1jqqacby6rrqm951adx3jw0j70r5i8pmrqnnw482l8m";
};
buildPhase = ''
mcs *.cs -out:wavefunctioncollapse.exe -r:System.Drawing
grep -m1 -B999 '^[*][/]' Main.cs > COPYING.MIT
'';
installPhase = ''
mkdir -p "$out"/{bin,share/doc/wavefunctioncollapse,share/wavefunctioncollapse}
cp README.md COPYING.MIT "$out"/share/doc/wavefunctioncollapse
cp wavefunctioncollapse.exe "$out"/bin
cp -r [Ss]amples samples.xml "$out/share/wavefunctioncollapse"
echo "#! ${stdenv.shell}" >> "$out/bin/wavefunctioncollapse"
echo "chmod u+w ." >> "$out/bin/wavefunctioncollapse"
echo "'${mono}/bin/mono' '$out/bin/wavefunctioncollapse.exe' \"\$@\"" >> "$out/bin/wavefunctioncollapse"
chmod a+x "$out/bin/wavefunctioncollapse"
'';
buildInputs = [ mono ];
meta = {
description = "Generator of bitmaps that are locally similar to the input bitmap";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.raskin ];
platforms = lib.platforms.linux;
};
}