Giter Club home page Giter Club logo

Comments (8)

sysr-q avatar sysr-q commented on July 18, 2024 1

Just to add to what @jhillyerd said, if anyone wants a NixOS overlay for this, I've forked the repo and merged in #7 and #13 from here since @colemickens seems to be MIA. You can use the following overlay in your nix config (but haven't tested with API tokens, just the annoying global zone key still):

{ config, pkgs, lib, ... }:
{
nixpkgs.overlays = [ (
  self: super:
  {
    cfdyndns = super.cfdyndns.overrideAttrs (old: rec {
      src = super.fetchFromGitHub {
        owner = "sysr-q";
        repo = "cfdyndns";
        rev = "4e703506df0298423a79be3e0efec7ecf6ae8680";
        sha256 = "0plijgr5y58ir9mjvxgm6jszz90pd1g0qjf21z0v5xrzg6bs2sy1";
      };

      cargoDeps = old.cargoDeps.overrideAttrs (lib.const {
        name = "cfdyndns-0.0.3-vendor.tar.gz";
        inherit src;
        outputHash = "OLxvob50FXumoxVfj97lOwSDaXncWGZXTf0wltnReQo=";
      });
    });
  }
) ];

services.cfdyndns = {
  enable = true;
  # ... etc
};
}

from cfdyndns.

jhillyerd avatar jhillyerd commented on July 18, 2024

It looks like support is there in HEAD, but it has not been released?

from cfdyndns.

jhillyerd avatar jhillyerd commented on July 18, 2024

@colemickens I was able to build dfd6200 as a NixOS overlay without any updates/patches, so you should be OK to tag a new release even if you don't have time to update deps.

Edit: meant to say I tested it with my API Token and it's working.

from cfdyndns.

colemickens avatar colemickens commented on July 18, 2024

Hey @sysr-q,

I'm confused, I was able to just cargo update and I am infact using a regular User API token successfully (See my latest commit+tag).

If you are interested in maintaining this, or maybe you and @nrdxp, I'd be happy to redirect folks to your fork and we can update the package in nixpkgs to point at your fork....

from cfdyndns.

nrdxp avatar nrdxp commented on July 18, 2024

Interesting that you pinged me, I just created a branch where I started some cleanups and updates 😅

Once I implement a few more of the features I'd like, I'd be happy to take over maintainership, but it'll probably be a bit. The build failures on latest Rust and runtime issues are fixed already though.

On a somewhat orthogonal point, however, the NixOS module should probably also support API tokens as they are simpler and don't require exposing an email as well.

from cfdyndns.

colemickens avatar colemickens commented on July 18, 2024

I was wondering if the nixos module implementation was indeed the crux, since the simply Cargo-updated rust code seems to work fine with the User API token I tried. It certainly seems like it would even be wise to just force their usage and drop the email variable altogether.

But, I don't really need to have any input or opinions if you're going to run with it. 😉 Just in case they're filtered, but I did reply on the nixpkgs thread too and have a draft PR, but again, happy to let you lead on how to handle all of that.

from cfdyndns.

nrdxp avatar nrdxp commented on July 18, 2024

This should fix the module:
NixOS/nixpkgs#253728

from cfdyndns.

nrdxp avatar nrdxp commented on July 18, 2024

I'm closing this in favor of API tokens, if you have some compelling reason why we should still do this, we can reopen later

from cfdyndns.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.