first commit

This commit is contained in:
2026-05-07 20:10:15 +04:00
commit 56be6b49d5
2 changed files with 41 additions and 0 deletions

32
flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
description = "DIvan package set";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
ponyfetch = {
url = "git+https://git.divan2000.su/DIvan2000/ponyfetch";
inputs.nixpkgs.follows = "nixpkgs";
};
terminal-oscilloscope = {
url = "git+https://git.divan2000.su/DIvan2000/terminal-oscilloscope";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
callPackage = pkgs.callPackage;
in {
packages = {
ponyfetch = inputs.ponyfetch.packages.${system}.default;
} // lib.optionalAttrs (hasPackage inputs.terminal-oscilloscope) {
terminal-oscilloscope = defaultPackage inputs.terminal-oscilloscope;
};
});
}