mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #319416 from rnhmjoj/pr-magnetico
magnetico: fix build
This commit is contained in:
commit
e6a494be5d
@ -1,10 +1,12 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
|
, sqlite
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule {
|
||||||
pname = "magnetico";
|
pname = "magnetico";
|
||||||
version = "unstable-2022-08-10";
|
version = "unstable-2022-08-10";
|
||||||
|
|
||||||
@ -12,10 +14,20 @@ buildGoModule rec {
|
|||||||
owner = "ireun";
|
owner = "ireun";
|
||||||
repo = "magnetico";
|
repo = "magnetico";
|
||||||
rev = "828e230d3b3c0759d3274e27f5a7b70400f4d6ea";
|
rev = "828e230d3b3c0759d3274e27f5a7b70400f4d6ea";
|
||||||
sha256 = "sha256-V1pBzillWTk9iuHAhFztxYaq4uLL3U3HYvedGk6ffbk=";
|
hash = "sha256-V1pBzillWTk9iuHAhFztxYaq4uLL3U3HYvedGk6ffbk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-ngYkTtBEZSyYYnfBHi0VrotwKGvMOiowbrwigJnjsuU=";
|
patches = [
|
||||||
|
# https://github.com/ireun/magnetico/pull/15
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/ireun/magnetico/commit/90db34991aa44af9b79ab4710c638607c6211c1c.patch";
|
||||||
|
hash = "sha256-wC9lVQqfngQ5AaRgb4TtoWSgbQ2iSHeQ2UBDUyWjMK8=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
vendorHash = "sha256-JDrBXjnQAcWp8gKvnm+q1F5oV+FozKUvhHK/Me/Cyj8=";
|
||||||
|
|
||||||
|
buildInputs = [ sqlite ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
@ -26,18 +38,16 @@ buildGoModule rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preBuild
|
runHook preCheck
|
||||||
|
|
||||||
make test
|
make test
|
||||||
|
|
||||||
runHook postBuild
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = { inherit (nixosTests) magnetico; };
|
passthru.tests = { inherit (nixosTests) magnetico; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
# Build fails with Go >=1.21, couldn't be fixed by updating module dependencies.
|
|
||||||
broken = true;
|
|
||||||
description = "Autonomous (self-hosted) BitTorrent DHT search engine suite";
|
description = "Autonomous (self-hosted) BitTorrent DHT search engine suite";
|
||||||
homepage = "https://github.com/ireun/magnetico";
|
homepage = "https://github.com/ireun/magnetico";
|
||||||
license = licenses.agpl3Only;
|
license = licenses.agpl3Only;
|
||||||
|
Loading…
Reference in New Issue
Block a user