first commit
This commit is contained in:
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Ignore build outputs from performing a nix-build or `nix build` command
|
||||||
|
result
|
||||||
|
result-*
|
||||||
|
|
||||||
|
# Ignore automatically generated direnv output
|
||||||
|
.direnv
|
||||||
|
|
||||||
|
# Ignore NixOS interactive test driver history
|
||||||
|
**/.nixos-test-history
|
||||||
32
flake.nix
Normal file
32
flake.nix
Normal 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;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user