Skip to content

Commit a5aa396

Browse files
committed
wine packages now are wineApps
Signed-off-by: lucasew <lucas59356@gmail.com>
1 parent 1572e0f commit a5aa396

File tree

11 files changed

+62
-58
lines changed

11 files changed

+62
-58
lines changed

overlay.nix

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,25 @@ in reduceJoin [
3737
c4me = cp ./packages/c4me;
3838
cisco-packet-tracer = cp ./packages/cisco-packet-tracer.nix;
3939
custom_neovim = cp ./modules/neovim/package.nix;
40+
wineApps = {
41+
wine7zip = cp ./packages/wineApps/7zip.nix;
42+
among_us = cp ./packages/wineApps/among_us.nix;
43+
ets2 = cp ./packages/wineApps/ets2.nix;
44+
mspaint = cp ./packages/wineApps/mspaint.nix;
45+
pinball = cp ./packages/wineApps/pinball.nix;
46+
sosim = cp ./packages/wineApps/sosim.nix;
47+
tora = cp ./packages/wineApps/tora.nix;
48+
};
4049
among_us = cp ./packages/among_us.nix;
4150
comby = cp ./packages/comby.nix;
4251
custom_rofi = cp ./packages/custom_rofi.nix;
43-
ets2 = cp ./packages/ets2.nix;
4452
custom_ncdu = cp ./packages/custom_ncdu.nix;
4553
minecraft = cp ./packages/minecraft.nix;
46-
mspaint = cp ./packages/mspaint.nix;
47-
# onlyoffice = cp ./packages/onlyoffice.nix;
4854
peazip = cp ./packages/peazip.nix;
49-
pinball = cp ./packages/pinball.nix;
5055
pkg = cp ./packages/pkg.nix;
5156
stremio = cp ./packages/stremio.nix;
52-
sosim = cp ./packages/sosim.nix;
5357
usb_tixati = cp ./packages/usb_tixati.nix;
5458
wrapWine = cp ./packages/wrapWine.nix;
55-
tora_lp = cp ./packages/tora.nix;
56-
wine7zip = cp ./packages/7zip.nix;
5759
preload = cp ./packages/preload.nix;
5860
python3Packages = cp ./packages/python3Packages.nix;
5961
nodePackages = cp ./modules/node_clis/package_data/default.nix;
@@ -63,6 +65,5 @@ in reduceJoin [
6365
inherit (super) pkgs;
6466
nurpkgs = super.pkgs;
6567
};
66-
calibre-py2 = super.calibre;
6768
}
6869
]

packages/among_us.nix

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/pinball.nix

Lines changed: 0 additions & 40 deletions
This file was deleted.

packages/wineApps/among_us.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ pkgs, ... }:
2+
let
3+
bin = pkgs.wrapWine {
4+
name = "among_us";
5+
executable = "/run/media/lucasew/Dados/DADOS/Jogos/Among_Us/Among Us.exe";
6+
};
7+
in pkgs.makeDesktopItem {
8+
name = "amongUs";
9+
desktopName = "Among Us";
10+
type = "Application";
11+
exec = ''${bin}/bin/among_us'';
12+
icon = builtins.fetchurl {
13+
# icon from playstore
14+
name = "amongus.png";
15+
url = "https://play-lh.googleusercontent.com/VHB9bVB8cTcnqwnu0nJqKYbiutRclnbGxTpwnayKB4vMxZj8pk1220Rg-6oQ68DwAkqO=s180";
16+
sha256 = "0knyfxbmnw0ad68zv9h5rmh6102lnn81silzkqi1rpixzc2dgp6b";
17+
};
18+
}

packages/wineApps/pinball.nix

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{ pkgs, ... }:
2+
# FIXME: Can't hear that lovely music and the sound effects
3+
let
4+
wine = pkgs.wine.override {
5+
alsaSupport = true;
6+
faudioSupport = true;
7+
wineRelease = "staging";
8+
wineBuild = "wine32";
9+
};
10+
rarFile = pkgs.fetchurl {
11+
url = "https://archive.org/download/SpaceCadet_Plus95/Space_Cadet.rar";
12+
sha256 = "3cc5dfd914c2ac41b03f006c7ccbb59d6f9e4c32ecfd1906e718c8e47f130f4a";
13+
};
14+
bin = pkgs.wrapWine {
15+
name = "pinball";
16+
executable = "$WINEPREFIX/drive_c/PINBALL.exe";
17+
firstrunScript = ''
18+
pushd "$WINEPREFIX/drive_c"
19+
${pkgs.unrar}/bin/unrar x ${rarFile}
20+
popd
21+
'';
22+
};
23+
in
24+
pkgs.makeDesktopItem {
25+
name = "Pinball";
26+
desktopName = "Pinbal - Space Cadet";
27+
icon = builtins.fetchurl {
28+
url = "https://www.chip.de/ii/1/8/8/0/2/9/2/3/028c4582789e6c07.jpg";
29+
sha256 = "1lwsnsp4hxwqwprjidgmxksaz13ib98w34r6nxkhcip1z0bk1ilz";
30+
};
31+
type = "Application";
32+
exec = "${bin}/bin/pinball";
33+
}

0 commit comments

Comments
 (0)