9ad46075a0
This is weird
b7ddbd52bd
replaced idris-modules/sdl2.nix hash with that of pkgs/applications/networking/instant-messengers/quaternion/default.nix
Build log says [sdl2.ipkg](https://github.com/steshaw/idris-sdl2/blob/0.1.1/sdl2.ipkg) isn't found, which is kind of correct message for using wrong archive
https://hydra.nixos.org/build/142426623/nixlog/2
How do we make sure all other replaced hashes are correct?
Also move pkg-config dependency to nativeBuildInputs
ZHF: #122042
41 lines
677 B
Nix
41 lines
677 B
Nix
{ build-idris-package
|
|
, fetchFromGitHub
|
|
, effects
|
|
, lib
|
|
, pkg-config
|
|
, SDL2
|
|
, SDL2_gfx
|
|
}:
|
|
build-idris-package rec {
|
|
name = "sdl2";
|
|
version = "0.1.1";
|
|
|
|
idrisDeps = [ effects ];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
extraBuildInputs = [
|
|
SDL2
|
|
SDL2_gfx
|
|
];
|
|
|
|
prePatch = "patchShebangs .";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "steshaw";
|
|
repo = "idris-sdl2";
|
|
rev = version;
|
|
sha256 = "1jslnlzyw04dcvcd7xsdjqa7waxzkm5znddv76sv291jc94xhl4a";
|
|
};
|
|
|
|
meta = {
|
|
description = "SDL2 binding for Idris";
|
|
homepage = "https://github.com/steshaw/idris-sdl2";
|
|
maintainers = with lib.maintainers; [
|
|
brainrape
|
|
steshaw
|
|
];
|
|
};
|
|
}
|