Skip to content
Snippets Groups Projects
Commit a06c0a3b authored by Daniel Firth's avatar Daniel Firth
Browse files

sdl2-{gfx, image, mixer, ttf}: init

parent 1ef65575
Branches
2 merge requests!20ghc 9.6.x updates,!16sdl2-{gfx, image, mixer, ttf}: init
......@@ -3,8 +3,13 @@
with pkgs.haskell.lib;
final: prev: {
zlib = prev.callPackage ./pkgs/zlib.nix { inherit (pkgs) zlib; };
digest = addPkgconfigDepend prev.digest pkgs.zlib;
persistent-qq = null;
sdl2-gfx = pkgs.haskellPackages.sdl2-gfx;
zlib = prev.callPackage ./pkgs/zlib.nix { inherit (pkgs) zlib; };
}
......@@ -192,17 +192,17 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1696879762,
"narHash": "sha256-Ud6bH4DMcYHUDKavNMxAhcIpDGgHMyL/yaDEAVSImQY=",
"lastModified": 1690244517,
"narHash": "sha256-85HKKTzXygAcYLqgkNZw0rmtC1MBAcINpplraESqbuI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a",
"rev": "500b36d057ceaa7ad3e2e282958a44ed607b021f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"rev": "500b36d057ceaa7ad3e2e282958a44ed607b021f",
"type": "github"
}
},
......
......@@ -10,7 +10,7 @@
horizon-core.url = "git+https://gitlab.horizon-haskell.net/package-sets/horizon-core";
flake-utils.url = "github:numtide/flake-utils";
lint-utils.url = "git+https://gitlab.nixica.dev/nix/lint-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs?rev=500b36d057ceaa7ad3e2e282958a44ed607b021f";
};
outputs =
......
......@@ -109,6 +109,10 @@ let packages =
, rio = H.callHackage "rio" "0.1.22.0"
, scanner = H.callHackage "scanner" "0.3.1"
, sdl2 = H.callHackage "sdl2" "2.5.5.0"
, sdl2-gfx = H.callHackage "sdl2-gfx" "0.3.0.0"
, sdl2-image = H.callHackage "sdl2-image" "2.1.0.0"
, sdl2-mixer = H.callHackage "sdl2-mixer" "1.2.0.0"
, sdl2-ttf = H.callHackage "sdl2-ttf" "2.1.3"
, selda =
H.callGit
"https://github.com/guibou/selda"
......
......@@ -350,6 +350,22 @@
, mapValue =
"9c6a246266b9e5f934dfc251bd264dcbd1fa2183658a9f57815927c7f6716549"
}
, { mapKey = "sdl2-gfx"
, mapValue =
"3adfad00239f8abb27b7a7765114151f362599872832dcf801c1f1fec0425dc1"
}
, { mapKey = "sdl2-image"
, mapValue =
"801112cf0555e0167a24eae4a1cf0ba4698744b25f9c93dd3ec73e5e7d6ddfe9"
}
, { mapKey = "sdl2-mixer"
, mapValue =
"c666d0e3bd99db26a8c98745de3aecd179cf1b8157aa8d74a48ccadc3f0aadc1"
}
, { mapKey = "sdl2-ttf"
, mapValue =
"9422198e23429b22a6aabfeea36f14d854827fe74940bbcb5a482c5d128f72f7"
}
, { mapKey = "selda"
, mapValue =
"8e7a5f563f39d28495d061295a7b6d3866594c42dfc5dcc1db2e4878d9004f00"
......
......@@ -177,6 +177,14 @@ final: prev: with pkgs.haskell.lib; {
sdl2 = final.callPackage (./pkgs/sdl2.nix) { };
sdl2-gfx = final.callPackage (./pkgs/sdl2-gfx.nix) { };
sdl2-image = final.callPackage (./pkgs/sdl2-image.nix) { };
sdl2-mixer = final.callPackage (./pkgs/sdl2-mixer.nix) { };
sdl2-ttf = final.callPackage (./pkgs/sdl2-ttf.nix) { };
selda = final.callPackage (./pkgs/selda.nix) { };
servant = final.callPackage (./pkgs/servant.nix) { };
......
{ mkDerivation, SDL2, SDL2_gfx, base, lib, lifted-base
, monad-control, sdl2, template-haskell, vector
}:
mkDerivation {
pname = "sdl2-gfx";
version = "0.3.0.0";
sha256 = "bcab7e1f8f7a60dec2db07c6680eb3f16e88511829a6ef9cd82ddce91c293565";
isLibrary = true;
isExecutable = true;
enableSeparateDataOutput = false;
libraryHaskellDepends = [
base lifted-base monad-control sdl2 template-haskell vector
];
librarySystemDepends = [ SDL2_gfx ];
libraryPkgconfigDepends = [ SDL2 SDL2_gfx ];
executableHaskellDepends = [ base sdl2 vector ];
executableSystemDepends = [ SDL2_gfx ];
executablePkgconfigDepends = [ SDL2 SDL2_gfx ];
enableLibraryProfiling = true;
enableExecutableProfiling = true;
doHaddock = false;
jailbreak = true;
doCheck = false;
doBenchmark = false;
hyperlinkSource = false;
description = "Haskell bindings to SDL2_gfx";
license = lib.licenses.mit;
broken = false;
}
\ No newline at end of file
{ mkDerivation, SDL2, SDL2_image, base, bytestring, lib, sdl2
, template-haskell, text
}:
mkDerivation {
pname = "sdl2-image";
version = "2.1.0.0";
sha256 = "d22403d966e0f18ecc33fadda8e611e2e90bc718e8d6647177f5118264a5920d";
isLibrary = true;
isExecutable = true;
enableSeparateDataOutput = false;
libraryHaskellDepends = [
base bytestring sdl2 template-haskell text
];
librarySystemDepends = [ SDL2_image ];
libraryPkgconfigDepends = [ SDL2 SDL2_image ];
executableHaskellDepends = [ base sdl2 text ];
executableSystemDepends = [ SDL2_image ];
executablePkgconfigDepends = [ SDL2 SDL2_image ];
enableLibraryProfiling = true;
enableExecutableProfiling = true;
doHaddock = false;
jailbreak = true;
doCheck = false;
doBenchmark = false;
hyperlinkSource = false;
description = "Haskell bindings to SDL2_image";
license = lib.licenses.mit;
broken = false;
}
\ No newline at end of file
{ mkDerivation, SDL2_mixer, base, bytestring, data-default-class
, lib, lifted-base, monad-control, sdl2, template-haskell, vector
}:
mkDerivation {
pname = "sdl2-mixer";
version = "1.2.0.0";
sha256 = "58141826af5d491794a74484fda770859e2271b0ede44cc75f2e562b70b7cf99";
isLibrary = true;
isExecutable = true;
enableSeparateDataOutput = false;
libraryHaskellDepends = [
base bytestring data-default-class lifted-base monad-control sdl2
template-haskell vector
];
librarySystemDepends = [ SDL2_mixer ];
libraryPkgconfigDepends = [ SDL2_mixer ];
executableHaskellDepends = [ base data-default-class sdl2 vector ];
executableSystemDepends = [ SDL2_mixer ];
executablePkgconfigDepends = [ SDL2_mixer ];
enableLibraryProfiling = true;
enableExecutableProfiling = true;
doHaddock = false;
jailbreak = true;
doCheck = false;
doBenchmark = false;
hyperlinkSource = false;
description = "Haskell bindings to SDL2_mixer";
license = lib.licenses.bsd3;
broken = false;
}
\ No newline at end of file
{ mkDerivation, SDL2, SDL2_ttf, base, bytestring, lib, sdl2
, template-haskell, text, th-abstraction, transformers
}:
mkDerivation {
pname = "sdl2-ttf";
version = "2.1.3";
sha256 = "b60219fe8144c5d61b140b4607432b24fb93e947c504a8e2f89517175ba6a56a";
isLibrary = true;
isExecutable = true;
enableSeparateDataOutput = false;
libraryHaskellDepends = [
base bytestring sdl2 template-haskell text th-abstraction
transformers
];
libraryPkgconfigDepends = [ SDL2 SDL2_ttf ];
enableLibraryProfiling = true;
enableExecutableProfiling = true;
doHaddock = false;
jailbreak = true;
doCheck = false;
doBenchmark = false;
hyperlinkSource = false;
description = "Bindings to SDL2_ttf";
license = lib.licenses.bsd3;
broken = false;
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment