nixpkgs/pkgs/games/wireworld/default.nix
Janik H. 76cd1d2211 maintainers: drop janik
I guess my time has come as well...

With this commit, I'm not just dropping my maintainer entry, but I'm also
resigning from my duties as a board observer and NixCon project lead.
I also terminated my Summer of Nix contract today.
I'll also stop hosting the local NixOS meetup.

The only "project" I'll finish under the NixOS Foundation umbrella is
Google Summer of Code because the mentees aren't even remotely
responsible for why I'm leaving, and it would be unfair to leave them
hanging.

I'm grateful for all the things I was able to learn, for all the experiences
I could gather, and for all the friends I made along the way.
NixOS is what makes computers bearable for me, so I'll go and work on
some fork (*something something* you always meet twice in life).
2024-07-02 02:36:42 +02:00

66 lines
1.4 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, zip
, love
, makeWrapper
, makeDesktopItem
, copyDesktopItems
, strip-nondeterminism
}:
stdenv.mkDerivation rec {
pname = "wireworld";
version = "unstable-2023-05-09";
src = fetchFromGitLab {
owner = "blinry";
repo = pname;
rev = "03b82bf5d604d6d4ad3c07b224583de6c396fd17";
hash = "sha256-8BshnGLuA8lmG9g7FU349DWKP/fZvlvjrQBau/LSJ4E=";
};
nativeBuildInputs = [
copyDesktopItems
makeWrapper
strip-nondeterminism
zip
];
desktopItems = [
(makeDesktopItem {
name = "Wireworld";
exec = pname;
comment = "";
desktopName = "Wireworld";
genericName = "Wireworld";
categories = [ "Game" ];
})
];
installPhase = ''
runHook preInstall
zip -9 -r Wireworld.love ./*
strip-nondeterminism --type zip Wireworld.love
install -Dm444 -t $out/share/games/lovegames/ Wireworld.love
makeWrapper ${love}/bin/love $out/bin/Wireworld \
--add-flags $out/share/games/lovegames/Wireworld.love
runHook postInstall
'';
meta = with lib; {
description = "Fascinating electronics logic puzzles, game where you'll learn how to build clocks, diodes, and logic gates";
mainProgram = "Wireworld";
license = with licenses; [
mit
ofl
blueOak100
cc-by-sa-30
cc-by-sa-40
];
downloadPage = "https://ldjam.com/events/ludum-dare/53/wireworld";
maintainers = with lib.maintainers; [ ];
};
}