flake: fix fetching

This commit is contained in:
2026-05-25 17:26:21 +02:00
parent 5c4bd6ef16
commit 31366aeb48
2 changed files with 24 additions and 8 deletions
Generated
+18 -1
View File
@@ -34,10 +34,27 @@
"type": "github" "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": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"notewrapper": "notewrapper"
} }
}, },
"systems": { "systems": {
+6 -7
View File
@@ -4,9 +4,13 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; 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: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
@@ -15,12 +19,7 @@
pname = "notewrapper"; pname = "notewrapper";
version = "2.0"; version = "2.0";
src = pkgs.fetchFromGitHub { src = notewrapper;
owner = "tomasriveral";
repo = "NoteWrapper";
tag = "v${finalAttrs.version}";
hash = "sha256-JoI38n5RZ/s0n+Vr9Bri2oiFeyj7Xrt1AmglmcuMpmQ=";
};
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
pkg-config pkg-config