Merge pull request #200434 from DavSanchez/derivation/cotp
cotp: init at 1.1.0
This commit is contained in:
commit
2da37482b1
@ -3291,6 +3291,12 @@
|
|||||||
githubId = 798427;
|
githubId = 798427;
|
||||||
name = "Davor Babic";
|
name = "Davor Babic";
|
||||||
};
|
};
|
||||||
|
davsanchez = {
|
||||||
|
email = "davidslt+nixpkgs@pm.me";
|
||||||
|
github = "davsanchez";
|
||||||
|
githubId = 11422515;
|
||||||
|
name = "David Sánchez";
|
||||||
|
};
|
||||||
dawidsowa = {
|
dawidsowa = {
|
||||||
email = "dawid_sowa@posteo.net";
|
email = "dawid_sowa@posteo.net";
|
||||||
github = "dawidsowa";
|
github = "dawidsowa";
|
||||||
|
31
pkgs/applications/misc/cotp/default.nix
Normal file
31
pkgs/applications/misc/cotp/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, AppKit
|
||||||
|
, libxcb
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
name = "cotp";
|
||||||
|
version = "1.1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "replydev";
|
||||||
|
repo = "cotp";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-SbS+ch7/45kZb49jW2mnRWQruLrfrNfeZFqEPHQKGUg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-2lIR3K4/hr4XSmNGFd/dhwoFOtEB9KSnUrZkcaCyc9k=";
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isLinux [ libxcb ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ AppKit ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/replydev/cotp";
|
||||||
|
description = "Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ davsanchez ];
|
||||||
|
};
|
||||||
|
}
|
@ -385,6 +385,10 @@ with pkgs;
|
|||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cotp = callPackage ../applications/misc/cotp {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||||
|
};
|
||||||
|
|
||||||
cmark = callPackage ../development/libraries/cmark { };
|
cmark = callPackage ../development/libraries/cmark { };
|
||||||
|
|
||||||
cmark-gfm = callPackage ../development/libraries/cmark-gfm { };
|
cmark-gfm = callPackage ../development/libraries/cmark-gfm { };
|
||||||
|
Loading…
Reference in New Issue
Block a user