rgb again maybe this time without weird shit

This commit is contained in:
41666 2025-03-15 16:59:33 -07:00
parent e7253ef4a4
commit e10fd7d47b
13 changed files with 168 additions and 36 deletions

View file

@ -1,10 +1,22 @@
{ pkgs, ... }: let
{ pkgs, wine ? pkgs.wine, ... }: let
wrapped = pkgs.writeShellScriptBin "mspaint" ''
${pkgs.wine}/bin/wine ${./mspaint.exe}
${wine}/bin/wine ${./bin}/mspaint.exe
'';
in pkgs.makeDesktopItem {
name = "mspaint";
desktopName = "mspaint";
type = "Application";
exec = "${wrapped}/bin/mspaint";
}
desktopItem = pkgs.makeDesktopItem {
name = "mspaint";
desktopName = "mspaint";
type = "Application";
categories = [ "Graphics" ];
exec = "${wrapped}/bin/mspaint";
};
in pkgs.stdenvNoCC.mkDerivation {
pname = "mspaint";
version = "0.0.0";
src = wrapped;
nativeBuildInputs = [
pkgs.copyDesktopItems
];
desktopItems = [ desktopItem ];
}