@@ -0,0 +1,49 @@
1+{ alsaLib
2+, fetchFromGitHub
3+, openssl
4+, pkg-config
5+, python3
6+, rustPlatform
7+, stdenv
8+, wayland
9+, xorg
10+}:
11+
12+rustPlatform.buildRustPackage rec {
13+ pname = "ruffle";
14+ version = "nightly-2020-11-30";
15+
16+ src = fetchFromGitHub {
17+ owner = "ruffle-rs";
18+ repo = pname;
19+ rev = version;
20+ sha256 = "0z54swzy47laq3smficd3dyrs2zdi3cj2kb0b4hppjxpkkhiw4x0";
21+ };
22+
23+ nativeBuildInputs = [
24+ pkg-config
25+ python3
26+ ];
27+
28+ buildInputs = [
29+ alsaLib
30+ openssl
31+ wayland
32+ xorg.libX11
33+ xorg.libXcursor
34+ xorg.libXrandr
35+ xorg.libXi
36+ xorg.libxcb
37+ xorg.libXrender
38+ ];
39+
40+ cargoSha256 = "05kwfcbzjyyfhiqklhhlv06pinzw9bry4j8l9lk3k04c1q30gzkw";
41+
42+ meta = with stdenv.lib; {
43+ description = "An Adobe Flash Player emulator written in the Rust programming language.";
44+ homepage = "https://ruffle.rs/";
45+ license = with licenses; [ mit asl20 ];
46+ maintainers = with maintainers; [ govanify ];
47+ platforms = platforms.linux;
48+ };
49+}