git.iko.soy/typeable/nixpkgs
on master help sign in
convchain: init at 0.0pre20160901
commit3995f280ad5fd09c0a2f0b21778c76e4be1976ab authorMichael Raskin <7c6f434c@mail.ru> dateSat 1 Oct 2016, 13:41 (10 years ago) parent40f9f9c
2 files changed+42
pkgs/tools/graphics/convchain/default.nix+40 pkgs/top-level/all-packages.nix+2
pkgs/tools/graphics/convchain/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{stdenv, fetchFromGitHub, mono}:
2+stdenv.mkDerivation rec {
3+ name = "convchain-${version}";
4+ version = "0.0pre20160901";
5+ src = fetchFromGitHub {
6+ owner = "mxgmn";
7+ repo = "ConvChain";
8+ rev = "8abb1e88a496fcae4c0ae31acd4eea55957dab68";
9+ sha256 = "0lnscljgbw0s90sfcahwvnxakml0f4d8jxi5ikm4ak8qgnvw6rql";
10+ };
11+ buildPhase = ''
12+ mcs ConvChain.cs -out:convchain.exe -r:System.Drawing
13+ mcs ConvChainFast.cs -out:convchainfast.exe -r:System.Drawing
14+ grep -m1 -B999 '^[*][/]' ConvChainFast.cs > COPYING.MIT
15+ '';
16+ installPhase = ''
17+ mkdir -p "$out"/{bin,share/doc/convchain,share/convchain}
18+ cp README.md COPYING.MIT "$out"/share/doc/convchain
19+ cp convchain*.exe "$out"/bin
20+ cp -r [Ss]amples samples.xml "$out/share/convchain"
21+
22+ echo "#! ${stdenv.shell}" >> "$out/bin/convchain"
23+ echo "chmod u+w ." >> "$out/bin/convchain"
24+ echo "'${mono}/bin/mono' '$out/bin/convchain.exe' \"\$@\"" >> "$out/bin/convchain"
25+ chmod a+x "$out/bin/convchain"
26+
27+ echo "#! ${stdenv.shell}" >> "$out/bin/convchainfast"
28+ echo "chmod u+w ." >> "$out/bin/convchainfast"
29+ echo "'${mono}/bin/mono' '$out/bin/convchainfast.exe' \"\$@\"" >> "$out/bin/convchainfast"
30+ chmod a+x "$out/bin/convchainfast"
31+ '';
32+ buildInputs = [mono];
33+ meta = {
34+ inherit version;
35+ description = ''Bitmap generation from a single example with convolutions and MCMC'';
36+ license = stdenv.lib.licenses.mit;
37+ maintainers = [stdenv.lib.maintainers.raskin];
38+ platforms = stdenv.lib.platforms.linux;
39+ };
40+}
pkgs/top-level/all-packages.nix+2
@@ -12150,6 +12150,8 @@ in
1215012150
1215112151 containerd = callPackage ../applications/virtualization/containerd { };
1215212152
12153+ convchain = callPackage ../tools/graphics/convchain {};
12154+
1215312155 cpp_ethereum = callPackage ../applications/misc/webthree-umbrella {
1215412156 withOpenCL = true;
1215512157