Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix package #79

Open
keyvaann opened this issue Dec 18, 2024 · 3 comments
Open

Nix package #79

keyvaann opened this issue Dec 18, 2024 · 3 comments

Comments

@keyvaann
Copy link

It would be good if this project is also available as a Nix package, it will be much easier to install it and update it.

@JamesWoolfenden
Copy link
Owner

Hey @keyvaann Id happily take the PR if that's something you could supply?

@JamesWoolfenden
Copy link
Owner

JamesWoolfenden commented Dec 20, 2024

{ stdenv, fetchFromGitHub, go }:

stdenv.mkDerivation rec {
  pname = "pike";
  version = "1.0.0"; # Update this with the correct version

  src = fetchFromGitHub {
    owner = "JamesWoolfenden";
    repo = "pike";
    rev = "v${version}"; # Ensure this matches the version tag in your repository
    sha256 = "0c9vv8i3xysyyy4ncj7ryklh20vpxa3zzlcw5v6bmwxd949rvv2d"; # Update with the correct hash
  };

  buildInputs = [ go ];

  buildPhase = ''
    mkdir -p $out/bin
    go build -o $out/bin/pike
  '';

  meta = with stdenv.lib; {
    description = "Pike is a tool to simplify the creation and management of AWS IAM policies.";
    homepage = "https://github.com/JamesWoolfenden/pike";
    license = licenses.mit;
    maintainers = [ maintainers.yourGitHubUsername ];
  };
}

@keyvaann
Copy link
Author

keyvaann commented Jan 3, 2025

Thanks for your response!
I'm not really knowledgeable on Nix to create packages for it but the file that you have posted should do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants