lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 17.09-beta 34 lines 1.1 kB view raw
1{stdenv, fetchFromGitHub, mono}: 2stdenv.mkDerivation rec { 3 name = "syntex-${version}"; 4 version = "0.0pre20160915"; 5 src = fetchFromGitHub { 6 owner = "mxgmn"; 7 repo = "SynTex"; 8 rev = "f499a7c8112be4a63eb44843ba72957c2c9a04db"; 9 sha256 = "13fz6frlxsdz8qq94fsvim27cd5klmdsax5109yxm9175vgvpa0a"; 10 }; 11 buildPhase = '' 12 mcs *.cs -out:syntex.exe -r:System.Drawing 13 grep -m1 -B999 '^[*][/]' SynTex.cs > COPYING.MIT 14 ''; 15 installPhase = '' 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" 20 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" 25 ''; 26 buildInputs = [mono]; 27 meta = { 28 inherit version; 29 description = ''Texture synthesis from examples''; 30 license = stdenv.lib.licenses.mit; 31 maintainers = [stdenv.lib.maintainers.raskin]; 32 platforms = stdenv.lib.platforms.linux; 33 }; 34}