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