diff options
Diffstat (limited to 'pkgs/by-name/st')
-rw-r--r-- | pkgs/by-name/st/starlark/package.nix | 24 | ||||
-rw-r--r-- | pkgs/by-name/st/static-server/package.nix | 4 | ||||
-rw-r--r-- | pkgs/by-name/st/stella/package.nix | 52 | ||||
-rw-r--r-- | pkgs/by-name/st/stormlib/package.nix | 40 |
4 files changed, 118 insertions, 2 deletions
diff --git a/pkgs/by-name/st/starlark/package.nix b/pkgs/by-name/st/starlark/package.nix new file mode 100644 index 0000000000000..55ceab609164c --- /dev/null +++ b/pkgs/by-name/st/starlark/package.nix @@ -0,0 +1,24 @@ +{ lib, fetchFromGitHub, buildGoModule }: +buildGoModule rec { + pname = "starlark"; + version = "0-unstable-2023-11-21"; + + src = fetchFromGitHub { + owner = "google"; + repo = "starlark-go"; + rev = "90ade8b19d09805d1b91a9687198869add6dfaa1"; + hash = "sha256-ZNOPx7L21A4BR5WshMMAHGm6j1ukWC9waJ1lYLvxBw0="; + }; + + vendorHash = "sha256-jQE5fSqJeiDV7PW7BY/dzCxG6b/KEVIobcjJsaL2zMw="; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + homepage = "https://github.com/google/starlark-go"; + description = "An interpreter for Starlark, implemented in Go"; + license = licenses.bsd3; + maintainers = with maintainers; [ aaronjheng ]; + mainProgram = "starlark"; + }; +} diff --git a/pkgs/by-name/st/static-server/package.nix b/pkgs/by-name/st/static-server/package.nix index 3a5f0748f9687..f2b7d26d8f0b1 100644 --- a/pkgs/by-name/st/static-server/package.nix +++ b/pkgs/by-name/st/static-server/package.nix @@ -1,5 +1,5 @@ { lib -, buildGo121Module +, buildGoModule , fetchFromGitHub , curl , stdenv @@ -8,7 +8,7 @@ , substituteAll }: -buildGo121Module rec { +buildGoModule rec { pname = "static-server"; version = "1.2.1"; diff --git a/pkgs/by-name/st/stella/package.nix b/pkgs/by-name/st/stella/package.nix new file mode 100644 index 0000000000000..f6c863bc95df8 --- /dev/null +++ b/pkgs/by-name/st/stella/package.nix @@ -0,0 +1,52 @@ +{ lib +, SDL2 +, fetchFromGitHub +, sqlite +, pkg-config +, stdenv +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "stella"; + version = "6.7.1"; + + src = fetchFromGitHub { + owner = "stella-emu"; + repo = "stella"; + rev = finalAttrs.version; + hash = "sha256-4z6rFF6XqfyS9zZ4ByvTZi7cSqxpF4EcLffPbId5ppg="; + }; + + nativeBuildInputs = [ + SDL2 + pkg-config + ]; + + buildInputs = [ + SDL2 + sqlite + ]; + + strictDeps = true; + + meta = { + homepage = "https://stella-emu.github.io/"; + description = "An open-source Atari 2600 VCS emulator"; + longDescription = '' + Stella is a multi-platform Atari 2600 VCS emulator released under the GNU + General Public License (GPL). Stella was originally developed for Linux by + Bradford W. Mott, and is currently maintained by Stephen Anthony. Since + its original release several people have joined the development team to + port Stella to other operating systems such as AcornOS, AmigaOS, DOS, + FreeBSD, IRIX, Linux, OS/2, MacOS, Unix, and Windows. The development team + is working hard to perfect the emulator and we hope you enjoy our effort. + + As of its 3.5 release, Stella is officially donationware. + ''; + changelog = "https://github.com/stella-emu/stella/releases/tag/${finalAttrs.src.rev}"; + license = with lib.licenses; [ gpl2Plus ]; + mainProgram = "stella"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/by-name/st/stormlib/package.nix b/pkgs/by-name/st/stormlib/package.nix new file mode 100644 index 0000000000000..d55b93ca48caa --- /dev/null +++ b/pkgs/by-name/st/stormlib/package.nix @@ -0,0 +1,40 @@ +{ lib, stdenv, fetchFromGitHub, cmake, bzip2, libtomcrypt, zlib, darwin }: + +stdenv.mkDerivation rec { + pname = "stormlib"; + version = "9.22"; + + src = fetchFromGitHub { + owner = "ladislav-zezula"; + repo = "StormLib"; + rev = "v${version}"; + sha256 = "1rcdl6ryrr8fss5z5qlpl4prrw8xpbcdgajg2hpp0i7fpk21ymcc"; + }; + + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace "FRAMEWORK DESTINATION /Library/Frameworks" "FRAMEWORK DESTINATION Library/Frameworks" + ''; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DWITH_LIBTOMCRYPT=ON" + ]; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ bzip2 libtomcrypt zlib ] ++ + lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Carbon ]; + + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ + "-Wno-implicit-function-declaration" + "-Wno-int-conversion" + ]); + + meta = with lib; { + homepage = "https://github.com/ladislav-zezula/StormLib"; + license = licenses.mit; + description = "An open-source project that can work with Blizzard MPQ archives"; + platforms = platforms.all; + maintainers = with maintainers; [ aanderse karolchmist ]; + }; +} |