mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
ivpn{,-service}: init at 3.10.0 (#211888)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
84bd062b23
commit
eeb6a1e7ed
46
pkgs/tools/networking/ivpn/default.nix
Normal file
46
pkgs/tools/networking/ivpn/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user