Unverified Commit c1fd305f authored by Marcin Serwin's avatar Marcin Serwin
Browse files

mrrescue: inline pname and version



Signed-off-by: default avatarMarcin Serwin <marcin@serwin.dev>
parent 959299e1
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -12,9 +12,6 @@
}:

let
  pname = "mrrescue";
  version = "1.02d-unstable-2018-08-18";

  icon = fetchurl {
    url = "http://tangramgames.dk/img/thumb/mrrescue.png";
    sha256 = "1y5ahf0m01i1ch03axhvp2kqc6lc1yvh59zgvgxw4w7y3jryw20k";
@@ -22,7 +19,7 @@ let

  desktopItem = makeDesktopItem {
    name = "mrrescue";
    exec = pname;
    exec = "mrrescue";
    icon = icon;
    comment = "Arcade-style fire fighting game";
    desktopName = "Mr. Rescue";
@@ -33,7 +30,8 @@ let
in

stdenv.mkDerivation {
  name = "${pname}-${version}";
  pname = "mrrescue";
  version = "1.02d-unstable-2018-08-18";

  src = fetchFromGitHub {
    owner = "SimonLarsen";
@@ -61,11 +59,11 @@ stdenv.mkDerivation {
    mkdir -p $out/bin
    mkdir -p $out/share/games/lovegames

    cp -v mrrescue.love $out/share/games/lovegames/${pname}.love
    cp -v mrrescue.love $out/share/games/lovegames/mrrescue.love

    makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
    makeWrapper ${love}/bin/love $out/bin/mrrescue --add-flags $out/share/games/lovegames/mrrescue.love

    chmod +x $out/bin/${pname}
    chmod +x $out/bin/mrrescue
    mkdir -p $out/share/applications
    ln -s ${desktopItem}/share/applications/* $out/share/applications/
  '';