From 31366aeb487013c7f223e5f8e107815b42215e15 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Mon, 25 May 2026 17:26:21 +0200 Subject: [PATCH] flake: fix fetching --- flake.lock | 19 ++++++++++++++++++- flake.nix | 13 ++++++------- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index 88748a4..9a1cc21 100644 --- a/flake.lock +++ b/flake.lock @@ -34,10 +34,27 @@ "type": "github" } }, + "notewrapper": { + "flake": false, + "locked": { + "lastModified": 1779721342, + "narHash": "sha256-QbRzgD4HoUUemaVCIZ2VfiW+SUjzFY2rL51CLOxQLvk=", + "owner": "tomasriveral", + "repo": "NoteWrapper", + "rev": "e370f98c5ebc3c037dec4e7e35f26230724b70d3", + "type": "github" + }, + "original": { + "owner": "tomasriveral", + "repo": "NoteWrapper", + "type": "github" + } + }, "root": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "notewrapper": "notewrapper" } }, "systems": { diff --git a/flake.nix b/flake.nix index aa6b283..5ef738b 100644 --- a/flake.nix +++ b/flake.nix @@ -4,9 +4,13 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; + notewrapper = { + url = "github:tomasriveral/NoteWrapper"; + flake = false; + }; }; - outputs = { self, nixpkgs, flake-utils }: + outputs = { self, nixpkgs, flake-utils, notewrapper }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; @@ -15,12 +19,7 @@ pname = "notewrapper"; version = "2.0"; - src = pkgs.fetchFromGitHub { - owner = "tomasriveral"; - repo = "NoteWrapper"; - tag = "v${finalAttrs.version}"; - hash = "sha256-JoI38n5RZ/s0n+Vr9Bri2oiFeyj7Xrt1AmglmcuMpmQ="; - }; + src = notewrapper; nativeBuildInputs = with pkgs; [ pkg-config