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

help-circle






  • Fish is a surprisingly good shell.

    It’s not POSIX compatible, but I don’t really care, it only executes its own scripts / functions. It’s not as innovative as elvish or nu, but it kind of does everything very conveniently and shell-y for lack of a better word – and it always seems so simple. It seems conservative in design, but the old concepts have been evolved in a very usable way. Something I can’t say for all the other shells I’ve tried – at some point, it always gets awkward where fish is just elegant.




  • 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.





  • It’s a bit of a problem that there’s no serious contender to NixOS. Especially Guix is in a good position to become an alternative.

    But it will never happen, because of GNU. And before I continue, I want to make clear that this is not to shit on them.

    But realistically, only a fork could make it relevant. NixOS, despite its issues (documentation, flakes, whatever), has a massive mindshare: it’s a huge repository with very up-to-date packages, a lot of modules, and devshells are just a very handy thing for developers. You often find flakes in random GitHub repositories for that reason. There are sponsored efforts around the distribution (like lanzaboote). There are (semi-)commercial entities set up around it (numtide, determinate systems, tweag…)

    The difference between NixOS and Guix is probably so large that no commercial provider would want to put in the required work to bring Guix up to speed, and GNU is committed to other values. As such, I think only a very big volunteer effort could make a difference.