1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

nixos/infinoted: Abstract over libinfinity version

This commit is contained in:
Gregor Kleen 2016-11-24 15:40:04 +01:00
parent 78d9bffc0a
commit 274579cc95
2 changed files with 7 additions and 2 deletions

View file

@ -129,7 +129,7 @@ in {
serviceConfig = {
Type = "simple";
Restart = "always";
ExecStart = "${cfg.package}/bin/infinoted-0.6 --config-file=/var/lib/infinoted/infinoted.conf";
ExecStart = "${cfg.package}/bin/infinoted-${versions.majorMinor cfg.package.version} --config-file=/var/lib/infinoted/infinoted.conf";
User = cfg.user;
Group = cfg.group;
PermissionsStartOnly = true;

View file

@ -12,7 +12,8 @@ let
in stdenv.mkDerivation rec {
name = "libinfinity-0.7.1";
name = "libinfinity-${version}";
version = "0.7.1";
src = fetchurl {
url = "http://releases.0x539.de/libinfinity/${name}.tar.gz";
sha256 = "1jw2fhrcbpyz99bij07iyhy9ffyqdn87vl8cb1qz897y3f2f0vk2";
@ -36,6 +37,10 @@ in stdenv.mkDerivation rec {
${edf avahiSupport "avahi"}
'';
passthru = {
inherit version;
};
meta = {
homepage = http://gobby.0x539.de/;
description = "An implementation of the Infinote protocol written in GObject-based C";