Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/sourcehut/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1370,5 +1370,5 @@ in
];

meta.doc = ./default.md;
meta.maintainers = with maintainers; [ tomberek nessdoor ];
meta.maintainers = with maintainers; [ tomberek nessdoor christoph-heiss ];
}
19 changes: 10 additions & 9 deletions pkgs/applications/version-management/sourcehut/builds.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,29 @@
, setuptools
}:
let
version = "0.86.10";
version = "0.89.13";
gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.39"; };

src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "builds.sr.ht";
rev = version;
hash = "sha256-frwJgwJst2/NWd8VR0KbsVwm8JfWuekkY2oIIAdh3Fw=";
hash = "sha256-JpRVRzuHB6cgk/qW1j4zF8/K1xwz3J4nZhijmz5kVWU=";
};

buildsrht-api = buildGoModule ({
inherit src version;
pname = "buildsrht-api";
modRoot = "api";
vendorHash = "sha256-2khk7j22KON4MsuvFUNKSUpouJtVIOxE0hkh63iaxZ4=";
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.29"; });
vendorHash = "sha256-kTqoUfFEoNdDDzVNJ7XIbH7tbsl5MdBL+/UDHFv7D+A=";
} // gqlgen);

buildsrht-worker = buildGoModule {
buildsrht-worker = buildGoModule ({
inherit src version;
sourceRoot = "${src.name}/worker";
pname = "buildsrht-worker";
vendorHash = "sha256-obdaeRwMhuiCV2kVwDo1c+rU/hmsbiL1IgAf7AcIpoc=";
};
modRoot = "worker";
vendorHash = "sha256-kTqoUfFEoNdDDzVNJ7XIbH7tbsl5MdBL+/UDHFv7D+A=";
} // gqlgen);
in
buildPythonPackage rec {
inherit src version;
Expand Down Expand Up @@ -88,6 +89,6 @@ buildPythonPackage rec {
homepage = "https://git.sr.ht/~sircmpwn/builds.sr.ht";
description = "Continuous integration service for the sr.ht network";
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
maintainers = with maintainers; [ eadwu christoph-heiss ];
};
}
6 changes: 3 additions & 3 deletions pkgs/applications/version-management/sourcehut/core.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

buildPythonPackage rec {
pname = "srht";
version = "0.69.15";
version = "0.71.5";
pyproject = true;

disabled = pythonOlder "3.7";
Expand All @@ -37,7 +37,7 @@ buildPythonPackage rec {
owner = "~sircmpwn";
repo = "core.sr.ht";
rev = version;
sha256 = "sha256-T9yewweqnWL3IW5PHGyAcsIWCGn1ayK2rwrHVukYpgE=";
hash = "sha256-YIoKOiTi/9X4bSiG+GvnwzvKYhbfywrv/dTjxaJOOTQ=";
fetchSubmodules = true;
};

Expand Down Expand Up @@ -89,6 +89,6 @@ buildPythonPackage rec {
homepage = "https://git.sr.ht/~sircmpwn/srht";
description = "Core modules for sr.ht";
license = licenses.bsd3;
maintainers = with maintainers; [ eadwu ];
maintainers = with maintainers; [ eadwu christoph-heiss ];
};
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ unzip
, gqlgenVersion ? "0.17.20"
, gqlgenVersion ? "0.17.42"
}:
{
overrideModAttrs = (_: {
Expand Down
36 changes: 18 additions & 18 deletions pkgs/applications/version-management/sourcehut/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,70 +13,70 @@
, setuptools
}:
let
version = "0.84.2";
version = "0.85.7";
gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; };

src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "git.sr.ht";
rev = version;
sha256 = "sha256-sAkTsQlWtNDQ5vAhA2EeOvuJcj9A6AG8pgDyIKtr65s=";
hash = "sha256-jkESrrVE+0O2g64zzPOpqhl8DpvmosQvuF0s6Xd+lbM=";
};

gitApi = buildGoModule ({
inherit src version;
pname = "gitsrht-api";
modRoot = "api";
vendorHash = "sha256-LAYp0zgosZnFEbtxzjuTH9++0lbxhACr705HqXJz3D0=";
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });
vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0=";
} // gqlgen);

gitDispatch = buildGoModule {
gitDispatch = buildGoModule ({
inherit src version;
pname = "gitsrht-dispatch";
modRoot = "gitsrht-dispatch";
vendorHash = "sha256-EDvSZ3/g0xDSohrsAIpNhk+F0yy8tbnTW/3tURTonMc=";
vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0=";

postPatch = ''
substituteInPlace gitsrht-dispatch/main.go \
--replace /var/log/gitsrht-dispatch /var/log/sourcehut/gitsrht-dispatch
'';
};
} // gqlgen);

gitKeys = buildGoModule {
gitKeys = buildGoModule ({
inherit src version;
pname = "gitsrht-keys";
modRoot = "gitsrht-keys";
vendorHash = "sha256-9pojS69HCKVHUceyOpGtv9ewcxFD4WsOVsEzkmWJkF4=";
vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0=";

postPatch = ''
substituteInPlace gitsrht-keys/main.go \
--replace /var/log/gitsrht-keys /var/log/sourcehut/gitsrht-keys
'';
};
} // gqlgen);

gitShell = buildGoModule {
gitShell = buildGoModule ({
inherit src version;
pname = "gitsrht-shell";
modRoot = "gitsrht-shell";
vendorHash = "sha256-WqfvSPuVsOHA//86u33atMfeA11+DJhjLmWy8Ivq0NI=";
vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0=";

postPatch = ''
substituteInPlace gitsrht-shell/main.go \
--replace /var/log/gitsrht-shell /var/log/sourcehut/gitsrht-shell
'';
};
} // gqlgen);

gitUpdateHook = buildGoModule {
gitUpdateHook = buildGoModule ({
inherit src version;
pname = "gitsrht-update-hook";
modRoot = "gitsrht-update-hook";
vendorHash = "sha256-Bc3yPabS2S+qiroHFKrtkII/CfzBDYQ6xWxKHAME+Tc=";
vendorHash = "sha256-yWVpldqwpEZmeI18tvdIgof8GgSFEP70c8T5XDkryn0=";

postPatch = ''
substituteInPlace gitsrht-update-hook/main.go \
--replace /var/log/gitsrht-update-hook /var/log/sourcehut/gitsrht-update-hook
'';
};

} // gqlgen);
in
buildPythonPackage rec {
inherit src version;
Expand Down Expand Up @@ -122,6 +122,6 @@ buildPythonPackage rec {
homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht";
description = "Git repository hosting service for the sr.ht network";
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
maintainers = with maintainers; [ eadwu christoph-heiss ];
};
}
31 changes: 18 additions & 13 deletions pkgs/applications/version-management/sourcehut/hg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
, setuptools
}:

buildPythonPackage rec {
pname = "hgsrht";
let
version = "0.32.4";
gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.20"; };

pyproject = true;

disabled = pythonOlder "3.7";
Expand All @@ -24,24 +25,16 @@ buildPythonPackage rec {
owner = "~sircmpwn";
repo = "hg.sr.ht";
rev = version;
sha256 = "mYkA44c9wy/Iy1h1lXkVpc9gN7rQXFm4T3YBlQ1Dj60=";
hash = "sha256-mYkA44c9wy/Iy1h1lXkVpc9gN7rQXFm4T3YBlQ1Dj60=";
vc = "hg";
};

postPatch = ''
substituteInPlace Makefile \
--replace "all: api hgsrht-keys" ""

substituteInPlace hgsrht-shell \
--replace /var/log/hgsrht-shell /var/log/sourcehut/hgsrht-shell
'';

hgsrht-api = buildGoModule ({
inherit src version;
pname = "hgsrht-api";
modRoot = "api";
vendorHash = "sha256-vuOYpnF3WjA6kOe9MVSuVMhJBQqCmIex+QUBJrP+VDs=";
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });
} // gqlgen);

hgsrht-keys = buildGoModule {
inherit src version;
Expand All @@ -54,6 +47,18 @@ buildPythonPackage rec {
--replace /var/log/hgsrht-keys /var/log/sourcehut/hgsrht-keys
'';
};
in
buildPythonPackage rec {
inherit src version;
pname = "hgsrht";

postPatch = ''
substituteInPlace Makefile \
--replace "all: api hgsrht-keys" ""

substituteInPlace hgsrht-shell \
--replace /var/log/hgsrht-shell /var/log/sourcehut/hgsrht-shell
'';

nativeBuildInputs = [
pip
Expand Down Expand Up @@ -83,6 +88,6 @@ buildPythonPackage rec {
homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
description = "Mercurial repository hosting service for the sr.ht network";
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
maintainers = with maintainers; [ eadwu christoph-heiss ];
};
}
32 changes: 18 additions & 14 deletions pkgs/applications/version-management/sourcehut/hub.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,34 @@
, unzip
}:

buildPythonPackage rec {
pname = "hubsrht";
version = "0.17.2";
pyproject = true;

disabled = pythonOlder "3.7";
let
version = "0.17.5";
gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.41"; };

src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "hub.sr.ht";
rev = version;
sha256 = "sha256-A+lvRsPz5EBnM0gB4PJuxSMpELZTrK14ORxDbTKPXWg=";
hash = "sha256-GbBxK3XE+Y6Jiap0Nxa8vk4Kv6IbcdSi4NN59AeKwjA=";
};

postPatch = ''
substituteInPlace Makefile --replace "all: api" ""
'';

hubsrht-api = buildGoModule ({
inherit src version;
pname = "hubsrht-api";
modRoot = "api";
vendorHash = "sha256-K5EmZ4U+xItTR85+SCwhwg5KUGLkKHo9Nr2pkvmJpfo=";
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });
vendorHash = "sha256-wmuM0SxQbohTDaU8zmkw1TQTmqhOy1yAl1jRWk6TKL8=";
} // gqlgen);
in
buildPythonPackage rec {
inherit src version;
pname = "hubsrht";
pyproject = true;

disabled = pythonOlder "3.7";

postPatch = ''
substituteInPlace Makefile --replace "all: api" ""
'';

nativeBuildInputs = [
pip
Expand Down Expand Up @@ -67,6 +71,6 @@ buildPythonPackage rec {
homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
description = "Project hub service for the sr.ht network";
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
maintainers = with maintainers; [ eadwu christoph-heiss ];
};
}
24 changes: 14 additions & 10 deletions pkgs/applications/version-management/sourcehut/lists.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,30 @@
, setuptools
}:

buildPythonPackage rec {
pname = "listssrht";
version = "0.57.8";
pyproject = true;

disabled = pythonOlder "3.7";
let
version = "0.57.14";
gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.36"; };

src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "lists.sr.ht";
rev = version;
sha256 = "sha256-nQZRSTAyTWxcPHrRVCZ5TgcrNgrlxBFc1vRds0cQwA0=";
hash = "sha256-rzOxlat7Lbgt0Wl6vvnAC+fS3MynFVKFvVdIdxgA5e0=";
};

listssrht-api = buildGoModule ({
inherit src version;
pname = "listssrht-api";
modRoot = "api";
vendorHash = "sha256-E5Zzft9ANJT/nhhCuenZpdo3t9QYLmA+AyDyrbGectE=";
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });
vendorHash = "sha256-OWgrPvXVlvJPcoABP0ZxKzoYFhU44j/I44sBBRbd6KY=";
} // gqlgen);
in
buildPythonPackage rec {
inherit src version;
pname = "listssrht";
pyproject = true;

disabled = pythonOlder "3.7";

postPatch = ''
substituteInPlace Makefile \
Expand Down Expand Up @@ -69,6 +73,6 @@ buildPythonPackage rec {
homepage = "https://git.sr.ht/~sircmpwn/lists.sr.ht";
description = "Mailing list service for the sr.ht network";
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
maintainers = with maintainers; [ eadwu christoph-heiss ];
};
}
Loading