add flake.lock and fix flake.nix

This commit is contained in:
2026-05-07 20:16:58 +04:00
parent 56be6b49d5
commit e6679d98f5
2 changed files with 145 additions and 0 deletions

137
flake.lock generated Normal file
View File

@@ -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
}

View File

@@ -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;