interlock: extracted from goPackages
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# This file was generated by go2nix.
|
||||
{ stdenv, lib, sudo, utillinux, coreutils, systemd, cryptsetup,
|
||||
goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
|
||||
with goPackages;
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "interlock-${version}";
|
||||
version = "2016.04.13";
|
||||
rev = "v${version}";
|
||||
|
||||
goPackagePath = "github.com/inversepath/interlock";
|
||||
|
||||
subPackages = [ "./cmd/interlock" ];
|
||||
|
||||
src = fetchgit {
|
||||
inherit rev;
|
||||
url = "https://github.com/inversepath/interlock";
|
||||
sha256 = "1lnaz0vdg0k21wipc6w8h580cbpymiyasah98yzyzrmwraclb2bb";
|
||||
};
|
||||
|
||||
goDeps = ./deps.json;
|
||||
|
||||
nativeBuildInputs = [ sudo ];
|
||||
buildFlags = [ "-tags textsecure" ];
|
||||
postPatch = ''
|
||||
grep -lr '/s\?bin/' | xargs sed -i \
|
||||
-e 's|/bin/mount|${utillinux}/bin/mount|' \
|
||||
-e 's|/bin/umount|${utillinux}/bin/umount|' \
|
||||
-e 's|/bin/cp|${coreutils}/bin/cp|' \
|
||||
-e 's|/bin/mv|${coreutils}/bin/mv|' \
|
||||
-e 's|/bin/chown|${coreutils}/bin/chown|' \
|
||||
-e 's|/bin/date|${coreutils}/bin/date|' \
|
||||
-e 's|/sbin/poweroff|${systemd}/sbin/poweroff|' \
|
||||
-e 's|/usr/bin/sudo|/var/setuid-wrappers/sudo|' \
|
||||
-e 's|/sbin/cryptsetup|${cryptsetup}/bin/cryptsetup|'
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"include": "../../../go-modules/libs.json",
|
||||
"packages": [
|
||||
"github.com/Sirupsen/logrus",
|
||||
"github.com/agl/ed25519",
|
||||
"github.com/golang/protobuf",
|
||||
"github.com/janimo/textsecure",
|
||||
"golang.org/x/crypto",
|
||||
"golang.org/x/net",
|
||||
"gopkg.in/yaml.v2"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user