interlock: 2016.04.13 -> 2020.03.05

+32 -81
+32 -16
pkgs/servers/interlock/default.nix
··· 1 - { sudo, coreutils, systemd, cryptsetup 2 - , mount, umount 3 - , buildGoPackage, fetchFromGitHub }: 4 5 - buildGoPackage rec { 6 pname = "interlock"; 7 - version = "2016.04.13"; 8 - rev = "v${version}"; 9 - 10 - goPackagePath = "github.com/inversepath/interlock"; 11 - 12 - subPackages = [ "./cmd/interlock" ]; 13 14 src = fetchFromGitHub { 15 - inherit rev; 16 - owner = "inversepath"; 17 repo = "interlock"; 18 - sha256 = "06aqx3jy744yx29xyg8ips0dw16186hfqbxdv3hfrmwxmaxhl4lz"; 19 }; 20 21 - goDeps = ./deps.nix; 22 23 - nativeBuildInputs = [ sudo ]; 24 - tags = [ "textsecure" ]; 25 postPatch = '' 26 grep -lr '/s\?bin/' | xargs sed -i \ 27 -e 's|/bin/mount|${mount}/bin/mount|' \ ··· 34 -e 's|/usr/bin/sudo|/run/wrappers/bin/sudo|' \ 35 -e 's|/sbin/cryptsetup|${cryptsetup}/bin/cryptsetup|' 36 ''; 37 }
··· 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + , coreutils 5 + , cryptsetup 6 + , mount 7 + , systemd 8 + , umount 9 + }: 10 11 + buildGoModule rec { 12 pname = "interlock"; 13 + version = "2020.03.05"; 14 15 src = fetchFromGitHub { 16 + owner = "usbarmory"; 17 repo = "interlock"; 18 + rev = "v${version}"; 19 + sha256 = "sha256-YXa4vErt3YnomTKAXCv8yUVhcc0ST47n9waW5E8QZzY="; 20 }; 21 22 + vendorSha256 = "sha256-OL6I95IpyTIc8wCwD9nWxVUTrmZH6COhsd/YwNTyvN0="; 23 + 24 + ldflags = [ "-s" "-w" ]; 25 26 postPatch = '' 27 grep -lr '/s\?bin/' | xargs sed -i \ 28 -e 's|/bin/mount|${mount}/bin/mount|' \ ··· 35 -e 's|/usr/bin/sudo|/run/wrappers/bin/sudo|' \ 36 -e 's|/sbin/cryptsetup|${cryptsetup}/bin/cryptsetup|' 37 ''; 38 + 39 + postInstall = '' 40 + mkdir -p $out/share 41 + cp -R $src/static $out/share 42 + ''; 43 + 44 + # Tests are broken due to an error during key generation. 45 + doCheck = false; 46 + 47 + meta = with lib; { 48 + homepage = "https://github.com/usbarmory/interlock"; 49 + description = "File encryption tool and an HSM frontend"; 50 + license = licenses.gpl3Plus; 51 + platforms = platforms.linux; 52 + }; 53 }
-65
pkgs/servers/interlock/deps.nix
··· 1 - [ 2 - { 3 - goPackagePath = "gopkg.in/yaml.v2"; 4 - fetch = { 5 - type = "git"; 6 - url = "https://gopkg.in/yaml.v2"; 7 - rev = "a83829b6f1293c91addabc89d0571c246397bbf4"; 8 - sha256 = "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh"; 9 - }; 10 - } 11 - { 12 - goPackagePath = "golang.org/x/crypto"; 13 - fetch = { 14 - type = "git"; 15 - url = "https://go.googlesource.com/crypto"; 16 - rev = "575fdbe86e5dd89229707ebec0575ce7d088a4a6"; 17 - sha256 = "1kgv1mkw9y404pk3lcwbs0vgl133mwyp294i18jg9hp10s5d56xa"; 18 - }; 19 - } 20 - { 21 - goPackagePath = "github.com/Sirupsen/logrus"; 22 - fetch = { 23 - type = "git"; 24 - url = "https://github.com/Sirupsen/logrus"; 25 - rev = "be52937128b38f1d99787bb476c789e2af1147f1"; 26 - sha256 = "1m6vvd4pg4lwglhk54lv5mf6cc8h7bi0d9zb3gar4crz531r66y4"; 27 - }; 28 - } 29 - { 30 - goPackagePath = "github.com/agl/ed25519"; 31 - fetch = { 32 - type = "git"; 33 - url = "https://github.com/agl/ed25519"; 34 - rev = "278e1ec8e8a6e017cd07577924d6766039146ced"; 35 - sha256 = "165d89cc6dl28j4hkn86pny0jz3sa6hamzdvpvwdj4iha3x6lzc9"; 36 - }; 37 - } 38 - { 39 - goPackagePath = "github.com/golang/protobuf"; 40 - fetch = { 41 - type = "git"; 42 - url = "https://github.com/golang/protobuf"; 43 - rev = "59b73b37c1e45995477aae817e4a653c89a858db"; 44 - sha256 = "1dx22jvhvj34ivpr7gw01fncg9yyx35mbpal4mpgnqka7ajmgjsa"; 45 - }; 46 - } 47 - { 48 - goPackagePath = "github.com/janimo/textsecure"; 49 - fetch = { 50 - type = "git"; 51 - url = "https://github.com/janimo/textsecure"; 52 - rev = "c38f429e48d6b2776d17b4171f216f132185b0f6"; 53 - sha256 = "191pwgfgphr0x04dwpvniax4wilpv52l25bw7d3igvnw302y7i94"; 54 - }; 55 - } 56 - { 57 - goPackagePath = "golang.org/x/net"; 58 - fetch = { 59 - type = "git"; 60 - url = "https://go.googlesource.com/net"; 61 - rev = "62ac18b461605b4be188bbc7300e9aa2bc836cd4"; 62 - sha256 = "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p"; 63 - }; 64 - } 65 - ]
···