1 {lib, stdenv, fetchFromGitHub, mono}:
2 stdenv.mkDerivation rec {
4 version = "0.0pre20160915";
5 src = fetchFromGitHub {
8 rev = "f499a7c8112be4a63eb44843ba72957c2c9a04db";
9 sha256 = "13fz6frlxsdz8qq94fsvim27cd5klmdsax5109yxm9175vgvpa0a";
12 mcs *.cs -out:syntex.exe -r:System.Drawing
13 grep -m1 -B999 '^[*][/]' SynTex.cs > COPYING.MIT
16 mkdir -p "$out"/{bin,share/doc/syntex,share/syntex}
17 cp README.md COPYING.MIT "$out"/share/doc/syntex
18 cp syntex.exe "$out"/bin
19 cp -r [Ss]amples samples.xml "$out/share/syntex"
21 echo "#! ${stdenv.shell}" >> "$out/bin/syntex"
22 echo "chmod u+w ." >> "$out/bin/syntex"
23 echo "'${mono}/bin/mono' '$out/bin/syntex.exe' \"\$@\"" >> "$out/bin/syntex"
24 chmod a+x "$out/bin/syntex"
28 description = "Texture synthesis from examples";
29 license = lib.licenses.mit;
30 maintainers = [lib.maintainers.raskin];
31 platforms = lib.platforms.linux;