diff --git a/flake.lock b/flake.lock index aeca13c..2ec9568 100644 --- a/flake.lock +++ b/flake.lock @@ -3,17 +3,18 @@ "financier": { "flake": false, "locked": { - "lastModified": 1643285999, - "narHash": "sha256-t0fdmgXtL5oh1sORK/9Uv8lDFXW2GCkQg+LGWyo8mXw=", - "owner": "mpuppe", - "repo": "financier", - "rev": "feb17f4bfba2121043be68d6ab74573c6be2a06d", - "type": "gitlab" + "lastModified": 1649374330, + "narHash": "sha256-Q/WQHktGYfpLHz+Pu9YYpWEA0qXb7lo3Hn6KhdwgOhE=", + "ref": "mpuppe", + "rev": "0b9aeb76e3e5bffa1e59041d6e52715b6b641c7a", + "revCount": 614, + "type": "git", + "url": "https://codeberg.org/puppe/financier.git" }, "original": { - "owner": "mpuppe", - "repo": "financier", - "type": "gitlab" + "ref": "mpuppe", + "type": "git", + "url": "https://codeberg.org/puppe/financier.git" } }, "flake-utils": { diff --git a/flake.nix b/flake.nix index cb89d68..9b316f3 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.financier = { - url = "gitlab:mpuppe/financier"; + url = "git+https://codeberg.org/puppe/financier.git?ref=mpuppe"; flake = false; }; diff --git a/helpers.nix b/helpers.nix index dbeb77b..6de18fe 100644 --- a/helpers.nix +++ b/helpers.nix @@ -3,10 +3,8 @@ let financierLockData = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.financier.locked; - inherit (financierLockData) narHash owner repo rev; - url = "https://gitlab.com/${owner}/${repo}.git"; in fetchgit { - inherit url rev; - sha256 = narHash; + inherit (financierLockData) url rev; + sha256 = financierLockData.narHash; }; }