• 0 Posts
  • 6 Comments
Joined 6 months ago
cake
Cake day: June 23rd, 2024

help-circle


  • It’s rather simple in good cases, here’s my version:

    {
      lib,
      fetchFromGitHub,
      rustPlatform,
      perl,
    }:
    
    let
      pname = "managarr";
      version = "0.4.1";
    in
    
    rustPlatform.buildRustPackage {
      inherit pname version;
      src = fetchFromGitHub {
        owner = "Dark-Alex-17";
        repo = pname;
        rev = "df9bba32cb1628fe0bdf33c71089d7ae085066d4";
        hash = "sha256-2KWuqv0nxMc+H+lmuNQ0lbEm5yE2akuZTa7PT5JcvBs=";
      };
    
      cargoHash = "sha256-hB4uRgVUp6YngMoXqd03U/n+HdlcYdL5bwvTxI4xCLE=";
    
      nativeBuildInputs = [ perl ];
    
      meta = {
        description = "A TUI and CLI to manage your Servarrs";
        homepage = "https://github.com/Dark-Alex-17/managarr";
        license = lib.licenses.mit;
        maintainers = [ ];
      };
    }
    

  • No worries, I look forward to using this in the future :) (though probably rarely, I don’t use my *arr stack often)

    Once you have pushed your next release, I’ll submit the package definition I wrote to nixpkgs, currently worked around the ordering by checking out two commits after the tag, but since there’s no rush to push this, I’ll wait for the next release.


  • So I’m currently building the package, and there’s one thing that irks me a bit about it, which is that you first tagged your release as 0.4.1 and then changed your Cargo.toml… which means that if you check out that tag on GitHub, the information is always one release behind. This also seemed to be the case with other releases (0.4.0 shows as 0.3.7, 0.3.7 as 0.3.6…). From the commit history, this also seems to affect Cargo.lock, so we’re always getting the lock file for the previous release when checking out the tag. Not ideal

    An issue with the program itself: it will always show servers for both radarr and sonarr, regardless if you have them configured or not. Switching to an unconfigured one will yield an error for missing configuration. The program itself looks nice, though I’d prefer if there was the option to respect my shell’s color theme.