-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add NetworkManager-sstp #28616
WIP: Add NetworkManager-sstp #28616
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ stdenv, fetchFromGitHub, networkmanager, sstp-client, ppp, intltool | ||
, pkgconfig, libsecret, withGnome ? true, gnome3 }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}"; | ||
pname = "NetworkManager-sstp"; | ||
major = "1.2"; | ||
version = "${major}.2"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "enaess"; | ||
repo = "network-manager-sstp"; | ||
rev = "${version}"; | ||
sha256 = "4449b09c7debaf6b086ca020052b55beb86753ad6b22180db1b8dde824b7340d"; | ||
}; | ||
|
||
buildInputs = [ networkmanager sstp-client ppp libsecret ] | ||
++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome_keyring | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
gnome3.networkmanagerapplet ]; | ||
|
||
nativeBuildInputs = [ intltool pkgconfig ]; | ||
|
||
postPatch = '' | ||
sed -i -e 's%"\(/usr/sbin\|/usr/pkg/sbin\|/usr/local/sbin\)/[^"]*",%%g' ./src/nm-sstp-service.c | ||
|
||
substituteInPlace ./src/nm-sstp-service.c \ | ||
--replace /sbin/sstp-client ${sstp-client}/bin/sstp-client \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The file contains There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, using a patch with |
||
--replace /sbin/pppd ${ppp}/bin/pppd | ||
''; | ||
|
||
configureFlags = | ||
if withGnome then "--with-gnome --with-gtkver=3" else "--without-gnome"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
meta = { | ||
description = "SSTP plugin for NetworkManager"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a license. |
||
inherit (networkmanager.meta) maintainers platforms; | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you splitting the version?