Skip to content

prometheus-mpd-exporter: init at 0.1.0 #108342

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

Closed

Conversation

matthiasbeyer
Copy link
Contributor

Motivation for this change

Wrote this today and would find it useful if it were in nixpkgs. Others might be interested as well.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

I don't know how to properly test the service, but I have a similar service already running on two of my machines.

Sorry, something went wrong.

@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 labels Jan 3, 2021
extraOpts = {
port = mkOption {
type = types.port;
default = "9123";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


rustPlatform.buildRustPackage rec {
pname = "prometheus-mpd-exporter";
version = "v0.1.0";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = "v0.1.0";
version = "0.1.0";


src = fetchgit {
url = "https://git.beyermatthi.as/prometheus-mpd-exporter";
rev = version;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rev = version;
rev = "v${version}";

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108342 run on x86_64-linux 1

1 package blacklisted:
  • tests.nixos-functions.nixos-test
1 package built:
  • prometheus-mpd-exporter

@matthiasbeyer matthiasbeyer force-pushed the init-prometheus-mpd-exporter branch from 4ab13a5 to f15fc7d Compare January 10, 2021 09:03
maintainers = with maintainers; [ matthiasbeyer ];
};
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the extra 2 new lines.


cargoSha256 = "0snrfcjawla9ra40x22w5zrr8xnsyhlyj21di8gp5wzf0yj1a9n1";

nativeBuildInputs = [ pkg-config openssl ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it links against openssl it need to go to buildInputs.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rnhmjoj Michele Guerini Rocco
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@matthiasbeyer matthiasbeyer force-pushed the init-prometheus-mpd-exporter branch from f15fc7d to 7b2fe9d Compare February 1, 2021 14:34
Comment on lines +10 to +16
port = mkOption {
type = types.port;
default = "9806";
description = ''
Port to bind to
'';
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
port = mkOption {
type = types.port;
default = "9806";
description = ''
Port to bind to
'';
};

port is a default option, it is already defined in exporters.nix

@riotbib
Copy link
Member

riotbib commented Aug 1, 2021

I am interested in this software being in nixpkgs.

May someone fill me in, why this merge request was closed?

@matthiasbeyer
Copy link
Contributor Author

Because I don't care enough. I compile it myself in my configuration.nix and that's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants