default.nix 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. { lib
  2. , stdenv
  3. , fetchFromGitHub
  4. , meson
  5. , ninja
  6. , pkg-config
  7. , wrapGAppsHook4
  8. , gtk4
  9. , gtkmm4
  10. , libsigcxx
  11. }:
  12. stdenv.mkDerivation rec {
  13. pname = "minesweeper";
  14. version = "0.2.0";
  15. src = ./.;
  16. # If you want to use fetchFromGitHub instead:
  17. # src = fetchFromGitHub {
  18. # owner = "username";
  19. # repo = "minesweeper";
  20. # rev = "v${version}";
  21. # hash = "sha256-0000000000000000000000000000000000000000000=";
  22. # };
  23. nativeBuildInputs = [
  24. meson
  25. ninja
  26. pkg-config
  27. wrapGAppsHook4
  28. ];
  29. buildInputs = [
  30. gtk4
  31. gtkmm4
  32. libsigcxx
  33. ];
  34. meta = with lib; {
  35. description = "Modern Minesweeper game with GTK4 interface";
  36. homepage = "https://github.com/username/minesweeper";
  37. license = licenses.mit;
  38. platforms = platforms.linux;
  39. maintainers = with maintainers; [ /* your name here */ ];
  40. mainProgram = "minesweeper";
  41. };
  42. }