Unverified Commit a91826bc authored by Marcin Serwin's avatar Marcin Serwin Committed by GitHub
Browse files

treewide: make LOVE games support darwin or fixed on darwin (#501873)

parents cb4a969f 4e9826d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
  installPhase = ''
    runHook preInstall
    install -Dm444 90secondportraits.love $out/share/games/lovegames/90secondportraits.love
    makeWrapper ${love}/bin/love $out/bin/90secondportraits \
    makeWrapper ${lib.getExe love} $out/bin/90secondportraits \
      --add-flags $out/share/games/lovegames/90secondportraits.love
    runHook postInstall
  '';
@@ -78,7 +78,7 @@ stdenv.mkDerivation rec {
  meta = {
    description = "Silly speed painting game";
    mainProgram = "90secondportraits";
    platforms = lib.platforms.linux;
    platforms = love.meta.platforms;
    license = with lib.licenses; [
      zlib
      cc-by-sa-40
+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ stdenv.mkDerivation rec {

    cp -v duckmarines.love $out/share/games/lovegames/duckmarines.love

    makeWrapper ${love}/bin/love $out/bin/duckmarines --add-flags $out/share/games/lovegames/duckmarines.love
    makeWrapper ${lib.getExe love} $out/bin/duckmarines --add-flags $out/share/games/lovegames/duckmarines.love

    chmod +x $out/bin/duckmarines
    mkdir -p $out/share/applications
@@ -74,7 +74,7 @@ stdenv.mkDerivation rec {

  meta = {
    description = "Duck-themed action puzzle video game";
    platforms = lib.platforms.linux;
    platforms = love.meta.platforms;
    hydraPlatforms = [ ];
    license = with lib.licenses; [
      # code
+7 −5
Original line number Diff line number Diff line
@@ -27,10 +27,12 @@ stdenv.mkDerivation (finalAttrs: {
      hash = "sha256-m8dyCoudTJDfP0KGcoA0Xj5LmRwN/8YOfEwiwCa8sOE=";
      fetchSubmodules = true;
    }).overrideAttrs
      (_: {
      (oldAttrs: {
        env = oldAttrs.env or { } // {
          GIT_CONFIG_COUNT = 1;
          GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf";
          GIT_CONFIG_VALUE_0 = "git@github.com:";
        };
      });

  patches = [
@@ -75,7 +77,7 @@ stdenv.mkDerivation (finalAttrs: {
    zip -9 -r honey-home.love ./*
    strip-nondeterminism --type zip honey-home.love
    install -Dm444 -t $out/share/games/lovegames/ honey-home.love
    makeWrapper ${love}/bin/love $out/bin/honey-home \
    makeWrapper ${lib.getExe love} $out/bin/honey-home \
      --add-flags $out/share/games/lovegames/honey-home.love
    runHook postInstall
  '';
+2 −2
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ stdenv.mkDerivation {
    zip -9 -r mari0.love ./*
    strip-nondeterminism --type zip mari0.love
    install -Dm444 -t $out/share/games/lovegames/ mari0.love
    makeWrapper ${love}/bin/love $out/bin/mari0 \
    makeWrapper ${lib.getExe love} $out/bin/mari0 \
      --add-flags $out/share/games/lovegames/mari0.love
    runHook postInstall
  '';
@@ -52,7 +52,7 @@ stdenv.mkDerivation {
  meta = {
    description = "Crossover between Super Mario Bros. and Portal";
    mainProgram = "mari0";
    platforms = lib.platforms.linux;
    platforms = love.meta.platforms;
    license = lib.licenses.mit;
    downloadPage = "https://stabyourself.net/mari0/";
  };
+2 −2
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ stdenv.mkDerivation {

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

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

    chmod +x $out/bin/mrrescue
    mkdir -p $out/share/applications
@@ -72,7 +72,7 @@ stdenv.mkDerivation {
    description = "Arcade-style fire fighting game";
    mainProgram = "mrrescue";
    maintainers = [ ];
    platforms = lib.platforms.linux;
    platforms = love.meta.platforms;
    license = lib.licenses.zlib;
    downloadPage = "http://tangramgames.dk/games/mrrescue";
  };
Loading