Skip to content

Commit 1e74a12

Browse files
committed
sotp: Add 1.0.0-unstable-2024-05-20
Version 1.0.0 doesn't build because of a dependency problem. ``` missing go.sum entry for module providing package google.golang.org/appengine/urlfetch (imported by golang.org/x/oauth2/internal) ``` The upstream repository has an open PR to license the project under MPL-2.0 but it's on hold because they might opt for Apache-2.0 instead. The project is clearly intended to be licensed under an open license but until getsops/sotp#1 is resolved it is to be considered unfree software.
1 parent 35aaac1 commit 1e74a12

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
apps = {
1818
firefox = pkgs.callPackage ./pkgs/darwin/apps/firefox {};
1919
};
20+
21+
sotp = pkgs.callPackage ./pkgs/sotp {};
2022
}

pkgs/sotp/default.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{ buildGoModule, fetchFromGitHub, lib }:
2+
3+
buildGoModule rec {
4+
pname = "sotp";
5+
version = "1.0.0-unstable-2024-05-20";
6+
7+
src = fetchFromGitHub {
8+
owner = "getsops";
9+
repo = "sotp";
10+
rev = "13b0f90378a9f805806a2f5a87c4ed4afb8e877e";
11+
hash = "sha256-OuUnjT0yZrZtpfhMCMqaPZMDTVBynTWTLnGaCsdWeu4=";
12+
};
13+
14+
vendorHash = "sha256-78dS9GPuQ7HdDufql8QYxbRm6sgajd5kGiaKW6x7lTI=";
15+
16+
# Tests require a PGP key that is not public.
17+
doCheck = false;
18+
19+
meta = with lib; {
20+
description = "Small utility to store AWS TOTP secrets into Sops encrypted"
21+
+ "files and generate OTP on the command line";
22+
homepage = "https://github.com/getsops/sotp";
23+
license = with licenses; unfree;
24+
maintainers = with maintainers; [ toonn ];
25+
};
26+
}

0 commit comments

Comments
 (0)