git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #90624 from jacg/virtual-ans

virtual-ans: init at 3.0.2c

commite56d1e20221691aeb7c72790eab28b679fd729b2 authorLassulus <github@lassul.us> dateSat 22 Aug 2020, 20:09 (6 years ago) parentb76a3a676dc375
2 files changed+91
pkgs/applications/audio/virtual-ans/default.nix+89 pkgs/top-level/all-packages.nix+2
pkgs/applications/audio/virtual-ans/default.nixnew file+89
@@ -0,0 +1,89 @@
1+{ stdenv
2+, fetchzip
3+, libX11
4+, libXi
5+, libGL
6+, alsaLib
7+, SDL2
8+, autoPatchelfHook
9+}:
10+
11+stdenv.mkDerivation rec {
12+ pname = "virtual-ans";
13+ version = "3.0.2c";
14+
15+ src = fetchzip {
16+ url = "https://warmplace.ru/soft/ans/virtual_ans-${version}.zip";
17+ sha256 = "03r1v3l7rd59dakr7ndvgsqchv00ppkvi6sslgf1ng07r3rsvb1n";
18+ };
19+
20+ nativeBuildInputs = [
21+ autoPatchelfHook
22+ ];
23+
24+ buildInputs = [
25+ stdenv.cc.cc.lib
26+ libX11
27+ libXi
28+ libGL
29+ alsaLib
30+ SDL2
31+ ];
32+
33+ installPhase = ''
34+ mkdir -p $out
35+ cp -R ./* $out/
36+
37+ # Remove all executables except for current architecture
38+ ls -1d $out/START* | grep -v ${startScript} | xargs rm -rf
39+ ls -1d $out/bin/pixilang_linux* | grep -v ${linuxExecutable} | xargs rm -rf
40+
41+ # Start script performs relative search for resources, so it cannot be moved
42+ # to bin directory
43+ ln -s $out/${startScript} $out/bin/virtual-ans
44+ '';
45+
46+ startScript = if stdenv.isx86_32 then "START_LINUX_X86"
47+ else if stdenv.isx86_64 then "START_LINUX_X86_64"
48+ #else if stdenv.isDarwin then "START_MACOS.app" # disabled because I cannot test on Darwin
49+ else abort "Unsupported platform: ${stdenv.platform.kernelArch}.";
50+
51+ linuxExecutable = if stdenv.isx86_32 then "pixilang_linux_x86"
52+ else if stdenv.isx86_64 then "pixilang_linux_x86_64"
53+ else "";
54+
55+ meta = with stdenv.lib; {
56+ description = "Photoelectronic microtonal/spectral musical instrument";
57+ longDescription = ''
58+ Virtual ANS is a software simulator of the unique Russian synthesizer ANS
59+ - photoelectronic musical instrument created by Evgeny Murzin from 1938 to
60+ 1958. The ANS made it possible to draw music in the form of a spectrogram
61+ (sonogram), without live instruments and performers. It was used by
62+ Stanislav Kreichi, Alfred Schnittke, Edward Artemiev and other Soviet
63+ composers in their experimental works. You can also hear the sound of the
64+ ANS in Andrei Tarkovsky's movies Solaris, The Mirror, Stalker.
65+
66+ The simulator extends the capabilities of the original instrument. Now
67+ it's a full-featured graphics editor where you can convert sound into an
68+ image, load and play pictures, draw microtonal/spectral music and create
69+ some unusual deep atmospheric sounds. This app is for everyone who loves
70+ experiments and is looking for something new.
71+
72+ Key features:
73+
74+ + unlimited number of pure tone generators;
75+ + powerful sonogram editor - you can draw the spectrum and play it at the same time;
76+ + any sound (from a WAV file or a Microphone/Line-in) can be converted to image (sonogram) and vice versa;
77+ + support for MIDI devices;
78+ + polyphonic synth mode with MIDI mapping;
79+ + supported file formats: WAV, AIFF, PNG, JPEG, GIF;
80+ + supported sound systems: ASIO, DirectSound, MME, ALSA, OSS, JACK, Audiobus, IAA.
81+ '';
82+ homepage = "https://warmplace.ru/soft/ans/";
83+ license = licenses.free;
84+ # I cannot test the Darwin version, so I'll leave it disabled
85+ platforms = [ "x86_64-linux" "i686-linux" ];
86+ maintainers = with maintainers; [ jacg ];
87+ };
88+
89+}
pkgs/top-level/all-packages.nix+2
@@ -23377,6 +23377,8 @@ in
2337723377
2337823378 virtscreen = callPackage ../tools/admin/virtscreen {};
2337923379
23380+ virtual-ans = callPackage ../applications/audio/virtual-ans {};
23381+
2338023382 virtualbox = libsForQt5.callPackage ../applications/virtualization/virtualbox {
2338123383 stdenv = stdenv_32bit;
2338223384 inherit (gnome2) libIDL;