Loading pkgs/by-name/du/duckmarines/love-11-support.patch 0 → 100644 +842 −0 File added.Preview size limit exceeded, changes collapsed. Show changes pkgs/games/duckmarines/default.nix→pkgs/by-name/du/duckmarines/package.nix +39 −7 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, fetchurl, love, lua, makeWrapper, makeDesktopItem, strip-nondeterminism, zip, }: stdenv.mkDerivation rec { Loading @@ -27,24 +30,40 @@ stdenv.mkDerivation rec { categories = [ "Game" ]; }; src = fetchurl { url = "https://github.com/SimonLarsen/duckmarines/releases/download/v${version}/duckmarines-1.0c.love"; sha256 = "1rvgpkvi4h9zhc4fwb4knhsa789yjcx4a14fi4vqfdyybhvg5sh9"; src = fetchFromGitHub { owner = "SimonLarsen"; repo = "duckmarines"; tag = "v${version}"; hash = "sha256-0WzqYbK18IL8VY7NsVONwJCI5+me5SPulfkkLCifLvY="; }; nativeBuildInputs = [ makeWrapper ]; patches = [ # https://github.com/SimonLarsen/duckmarines/pull/18 ./love-11-support.patch ]; nativeBuildInputs = [ makeWrapper strip-nondeterminism zip ]; buildInputs = [ lua love ]; dontUnpack = true; buildPhase = '' runHook preBuild zip -9 -r duckmarines.love ./* strip-nondeterminism --type zip duckmarines.love runHook postBuild ''; installPhase = '' mkdir -p $out/bin mkdir -p $out/share/games/lovegames cp -v ${src} $out/share/games/lovegames/duckmarines.love 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 Loading @@ -57,7 +76,20 @@ stdenv.mkDerivation rec { description = "Duck-themed action puzzle video game"; platforms = lib.platforms.linux; hydraPlatforms = [ ]; license = lib.licenses.free; license = with lib.licenses; [ # code zlib # assets cc-by-sa-40 cc-by-nc-nd-40 # slam mit # tserial unfree ]; downloadPage = "http://tangramgames.dk/games/duckmarines"; }; Loading pkgs/top-level/all-packages.nix +0 −2 Original line number Diff line number Diff line Loading @@ -12607,8 +12607,6 @@ with pkgs; ddnet-server = ddnet.override { buildClient = false; }; duckmarines = callPackage ../games/duckmarines { love = love_0_10; }; dwarf-fortress-packages = recurseIntoAttrs (callPackage ../games/dwarf-fortress { }); inherit (dwarf-fortress-packages) dwarf-fortress dwarf-fortress-full dwarf-therapist; Loading Loading
pkgs/by-name/du/duckmarines/love-11-support.patch 0 → 100644 +842 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
pkgs/games/duckmarines/default.nix→pkgs/by-name/du/duckmarines/package.nix +39 −7 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, fetchurl, love, lua, makeWrapper, makeDesktopItem, strip-nondeterminism, zip, }: stdenv.mkDerivation rec { Loading @@ -27,24 +30,40 @@ stdenv.mkDerivation rec { categories = [ "Game" ]; }; src = fetchurl { url = "https://github.com/SimonLarsen/duckmarines/releases/download/v${version}/duckmarines-1.0c.love"; sha256 = "1rvgpkvi4h9zhc4fwb4knhsa789yjcx4a14fi4vqfdyybhvg5sh9"; src = fetchFromGitHub { owner = "SimonLarsen"; repo = "duckmarines"; tag = "v${version}"; hash = "sha256-0WzqYbK18IL8VY7NsVONwJCI5+me5SPulfkkLCifLvY="; }; nativeBuildInputs = [ makeWrapper ]; patches = [ # https://github.com/SimonLarsen/duckmarines/pull/18 ./love-11-support.patch ]; nativeBuildInputs = [ makeWrapper strip-nondeterminism zip ]; buildInputs = [ lua love ]; dontUnpack = true; buildPhase = '' runHook preBuild zip -9 -r duckmarines.love ./* strip-nondeterminism --type zip duckmarines.love runHook postBuild ''; installPhase = '' mkdir -p $out/bin mkdir -p $out/share/games/lovegames cp -v ${src} $out/share/games/lovegames/duckmarines.love 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 Loading @@ -57,7 +76,20 @@ stdenv.mkDerivation rec { description = "Duck-themed action puzzle video game"; platforms = lib.platforms.linux; hydraPlatforms = [ ]; license = lib.licenses.free; license = with lib.licenses; [ # code zlib # assets cc-by-sa-40 cc-by-nc-nd-40 # slam mit # tserial unfree ]; downloadPage = "http://tangramgames.dk/games/duckmarines"; }; Loading
pkgs/top-level/all-packages.nix +0 −2 Original line number Diff line number Diff line Loading @@ -12607,8 +12607,6 @@ with pkgs; ddnet-server = ddnet.override { buildClient = false; }; duckmarines = callPackage ../games/duckmarines { love = love_0_10; }; dwarf-fortress-packages = recurseIntoAttrs (callPackage ../games/dwarf-fortress { }); inherit (dwarf-fortress-packages) dwarf-fortress dwarf-fortress-full dwarf-therapist; Loading