pkgs: extract lohr from 'services/lohr'
This commit is contained in:
parent
b06f265291
commit
e6d46b3c59
|
@ -1,4 +1,6 @@
|
||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
{
|
{
|
||||||
|
lohr = pkgs.callPackage ./lohr { };
|
||||||
|
|
||||||
podgrab = pkgs.callPackage ./podgrab { };
|
podgrab = pkgs.callPackage ./podgrab { };
|
||||||
}
|
}
|
||||||
|
|
21
pkgs/lohr/default.nix
Normal file
21
pkgs/lohr/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ fetchFromGitHub, lib, rustPlatform }:
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "lohr";
|
||||||
|
version = "0.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "alarsyo";
|
||||||
|
repo = "lohr";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-MplTVJG+SoeLMXQP+ix/zM3OSHuQmZnunn900YnyCBw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "sha256-iuMJj8tqetlmdfsrfudnU1afwUzjls/UdYLq1u0gr+g=";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Git mirroring daemon";
|
||||||
|
homepage = "https://github.com/alarsyo/lohr";
|
||||||
|
license = with licenses; [ mit asl20 ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,11 +7,7 @@ let
|
||||||
domain = config.networking.domain;
|
domain = config.networking.domain;
|
||||||
lohrDomain = "lohr.${config.networking.domain}";
|
lohrDomain = "lohr.${config.networking.domain}";
|
||||||
|
|
||||||
lohrPkg =
|
lohrPkg = pkgs.ambroisie.lohr;
|
||||||
let
|
|
||||||
flake = builtins.getFlake "github:alarsyo/lohr?rev=6c4a496ede8d7209be13d2bd597eef0789992fc3";
|
|
||||||
in
|
|
||||||
flake.defaultPackage."x86_64-linux"; # FIXME: use correct system
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.services.lohr = with lib; {
|
options.my.services.lohr = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue