Skip to content

Instantly share code, notes, and snippets.

@vst
Created July 5, 2024 03:52
Show Gist options
  • Save vst/d0d3a40269d0f6f222fba3f7065781ae to your computer and use it in GitHub Desktop.
Save vst/d0d3a40269d0f6f222fba3f7065781ae to your computer and use it in GitHub Desktop.
Packaing oidc-cli for Nix
{ 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