Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
962 B
Nix
37 lines
962 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "primitive";
|
|
version = "0-unstable-2020-05-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fogleman";
|
|
repo = "primitive";
|
|
rev = "0373c216458be1c4b40655b796a3aefedf8b7d23";
|
|
hash = "sha256-stKb3tPP/pgHTfdyTmWwVj/hLjOHtFpvJxXgBhhWgPQ=";
|
|
};
|
|
vendorHash = "sha256-I3rhP87QJJxNM9D7JYo3BjG/1PhsDWbnK/NJTf4aqmI=";
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "add-modules.patch";
|
|
url = "https://github.com/regularpoe/primitive/commit/2fa9b9f575ac2602e771c5263747bdbb48e9810b.patch";
|
|
hash = "sha256-TX3dGqVuY+qLh9EBg7oNVYWhGuETZHJdjPTroCDyZ74=";
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
description = "Reproducing images with geometric primitives";
|
|
homepage = "https://github.com/fogleman/primitive";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ stunkymonkey ];
|
|
mainProgram = "primitive";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|