From 7534b04fabedc4ebc86d81f05fe1ef0bb548f6ea Mon Sep 17 00:00:00 2001 From: cato-001 Date: Mon, 18 Aug 2025 07:56:18 +0200 Subject: [PATCH] fix nix flake --- flake.lock | 39 ++++++++++++++++++++++++++++++++++++++- flake.nix | 2 +- package.nix | 4 ++-- result | 1 - 4 files changed, 41 insertions(+), 5 deletions(-) delete mode 120000 result diff --git a/flake.lock b/flake.lock index a151ef3..2a59a6d 100644 --- a/flake.lock +++ b/flake.lock @@ -1,8 +1,29 @@ { "nodes": { + "blueprint": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "systems": "systems" + }, + "locked": { + "lastModified": 1755332143, + "narHash": "sha256-jaiZPA5ND7HPJ4U/bzp+BKGOYR14+rIe9tC6XA4jBHU=", + "owner": "numtide", + "repo": "blueprint", + "rev": "3c8bf84e28df2be19cc6623cb3ceeb6fc0839b91", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "blueprint", + "type": "github" + } + }, "flake-utils": { "inputs": { - "systems": "systems" + "systems": "systems_2" }, "locked": { "lastModified": 1731533236, @@ -59,6 +80,7 @@ }, "root": { "inputs": { + "blueprint": "blueprint", "flake-utils": "flake-utils", "gomod2nix": "gomod2nix", "nixpkgs": "nixpkgs" @@ -78,6 +100,21 @@ "repo": "default", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 16cb1c6..f4e75ef 100644 --- a/flake.nix +++ b/flake.nix @@ -19,5 +19,5 @@ }; }; - outputs = inputs: inputs.blueprint inputs; + outputs = inputs: inputs.blueprint { inherit inputs; }; } diff --git a/package.nix b/package.nix index d798923..7bbea09 100644 --- a/package.nix +++ b/package.nix @@ -1,6 +1,6 @@ -{ pkgs }: +{ perSystem }: -pkgs.buildGoApplication { +perSystem.gomod2nix.buildGoApplication { pname = "awl-ntfy"; version = "0.1"; pwd = ./.; diff --git a/result b/result deleted file mode 120000 index 8ac3b08..0000000 --- a/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/zd7pa71h9lihln596dzpdg081kcn9g90-awl-ntfy-0.1 \ No newline at end of file