From e6679d98f591843fefca74ebe2e181bd5fc41e0f Mon Sep 17 00:00:00 2001 From: DIvan2000 Date: Thu, 7 May 2026 20:16:58 +0400 Subject: [PATCH] add flake.lock and fix flake.nix --- flake.lock | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 8 ++++ 2 files changed, 145 insertions(+) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0a1d309 --- /dev/null +++ b/flake.lock @@ -0,0 +1,137 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1777954456, + "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "ponyfetch": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1778169658, + "narHash": "sha256-qLt7IX1LkqZlcy6GscVugKq7sKXIG25R0QJ7YkuKg1A=", + "ref": "refs/heads/main", + "rev": "9cf23c6e48432d3fc648c8cc84fe73bce91a6ff7", + "revCount": 2, + "type": "git", + "url": "https://git.divan2000.su/DIvan2000/ponyfetch" + }, + "original": { + "type": "git", + "url": "https://git.divan2000.su/DIvan2000/ponyfetch" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "ponyfetch": "ponyfetch", + "terminal-oscilloscope": "terminal-oscilloscope" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "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" + } + }, + "terminal-oscilloscope": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1777140453, + "narHash": "sha256-+Rw2OSO5bKWp4tICnjLdMZsWmjAgqYA0Vb9N3HH2Z1U=", + "ref": "refs/heads/master", + "rev": "bee679d3e1d023c31d4810b939f6d7fad390aad3", + "revCount": 33, + "type": "git", + "url": "https://git.divan2000.su/DIvan2000/terminal-oscilloscope" + }, + "original": { + "type": "git", + "url": "https://git.divan2000.su/DIvan2000/terminal-oscilloscope" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 078ae5e..e734519 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,14 @@ pkgs = import nixpkgs { inherit system; }; callPackage = pkgs.callPackage; + + lib = nixpkgs.lib; + + hasPackage = input: + input.packages ? ${system}; + + defaultPackage = input: + input.packages.${system}.default; in { packages = { ponyfetch = inputs.ponyfetch.packages.${system}.default;