Created
July 5, 2024 03:52
-
-
Save vst/d0d3a40269d0f6f222fba3f7065781ae to your computer and use it in GitHub Desktop.
Packaing oidc-cli for Nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib | |
, fetchFromGitHub | |
, rustPlatform | |
, pkg-config | |
, openssl | |
, stdenv | |
}: | |
rustPlatform.buildRustPackage rec { | |
pname = "oidc-cli"; | |
version = "v0.2.1"; | |
src = fetchFromGitHub { | |
owner = "ctron"; | |
repo = pname; | |
rev = version; | |
hash = "sha256-PR7lLjxZ1EdFRUcPo1Yu0iFFXFrQs9sD5MhZ+SiwJlE="; | |
}; | |
cargoHash = "sha256-clxcYGq4WzBFNSBVxhT4YhHuUeMc0xjLGaj+kPIIfbg="; | |
nativeBuildInputs = [ | |
pkg-config | |
]; | |
buildInputs = [ ] ++ lib.optionals stdenv.isLinux [ | |
openssl | |
]; | |
meta = { | |
description = "A command line tool to work with OIDC tokens"; | |
homepage = "https://github.com/ctron/oidc-cli"; | |
license = lib.licenses.asl20; | |
maintainers = [ ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment