ivpn{,-service}: init at 3.10.0 (#211888)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Colin Arnott 2023-01-21 19:00:46 +00:00 committed by GitHub
parent 84bd062b23
commit eeb6a1e7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ buildGoModule
, fetchFromGitHub
, lib
, wirelesstools
}:
builtins.mapAttrs (pname: attrs: buildGoModule (attrs // rec {
inherit pname;
version = "3.10.0";
src = fetchFromGitHub {
owner = "ivpn";
repo = "desktop-app";
rev = "v${version}";
hash = "sha256-oX1PWIBPDcvBTxstEiN2WosiVUNXJoloppkpcABSi7Y=";
};
ldflags = [
"-s"
"-w"
"-X github.com/ivpn/desktop-app/daemon/version._version=${version}"
"-X github.com/ivpn/desktop-app/daemon/version._time=1970-01-01"
];
postInstall = ''
mv $out/bin/{${attrs.modRoot},${pname}}
'';
meta = with lib; {
description = "Official IVPN Desktop app";
homepage = "https://www.ivpn.net/apps";
changelog = "https://github.com/ivpn/desktop-app/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ urandom ];
};
})) {
ivpn = {
modRoot = "cli";
vendorHash = "sha256-5FvKR1Kz91Yi/uILVFyJRnwFZSmZ5qnotXqOI4fKLbY=";
};
ivpn-service = {
modRoot = "daemon";
vendorHash = "sha256-9Rk6ruMpyWtQe+90kw4F8OLq7/JcDSrG6ufkfcrS4W8=";
buildInputs = [ wirelesstools ];
};
}

View File

@ -1422,6 +1422,8 @@ with pkgs;
httm = callPackage ../tools/filesystems/httm { };
inherit (callPackage ../tools/networking/ivpn/default.nix {}) ivpn ivpn-service;
jobber = callPackage ../tools/system/jobber {};
kanata = callPackage ../tools/system/kanata { };