nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 hareHook,
5 hareThirdParty,
6 fetchFromSourcehut,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "hare-png";
11 version = "0-unstable-2023-09-09";
12
13 src = fetchFromSourcehut {
14 owner = "~sircmpwn";
15 repo = "hare-png";
16 rev = "9deb848ae691d784c5cc7949153cfa04c67f90b6";
17 hash = "sha256-Q7xylsLVd/sp57kv6WzC7QHGN1xOsm7YEsYCbY/zi1Q=";
18 };
19
20 nativeBuildInputs = [ hareHook ];
21 propagatedBuildInputs = [ hareThirdParty.hare-compress ];
22
23 makeFlags = [ "PREFIX=${placeholder "out"}" ];
24
25 doCheck = true;
26
27 meta = {
28 homepage = "https://git.sr.ht/~sircmpwn/hare-png/";
29 description = "PNG implementation for Hare";
30 license = with lib.licenses; [ mpl20 ];
31 maintainers = with lib.maintainers; [ starzation ];
32 inherit (hareHook.meta) platforms badPlatforms;
33 };
34})