Unverified Commit 1c55c0d0 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

free42: packaging fixes (#377520)

parents be2e46a7 47c6ab8f
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  fetchFromGitHub,
  alsa-lib,
  copyDesktopItems,
  gtk3,
  wrapGAppsHook3,
  makeDesktopItem,
  pkg-config,
}:
@@ -23,11 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
  nativeBuildInputs = [
    copyDesktopItems
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    alsa-lib
    gtk3
  ];

  postPatch = ''
@@ -44,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
      exec = "free42bin";
      type = "Application";
      comment = "A software clone of HP-42S Calculator";
      icon = "free42";
      categories = [
        "Utility"
        "Calculator"
@@ -56,6 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
      exec = "free42dec";
      type = "Application";
      comment = "A software clone of HP-42S Calculator";
      icon = "free42";
      categories = [
        "Utility"
        "Calculator"
@@ -87,8 +89,8 @@ stdenv.mkDerivation (finalAttrs: {
    install -m644 gtk/README $out/share/doc/free42/README-GTK
    install -m644 README $out/share/doc/free42/README

    install -m644 gtk/icon-48x48.xpm $out/share/icons/hicolor/48x48/apps
    install -m644 gtk/icon-128x128.xpm $out/share/icons/hicolor/128x128/apps
    install -m644 gtk/icon-48x48.xpm $out/share/icons/hicolor/48x48/apps/free42.xpm
    install -m644 gtk/icon-128x128.xpm $out/share/icons/hicolor/128x128/apps/free42.xpm
    install -m644 skins/* $out/share/free42/skins

    runHook postInstall