worther/flake.nix

23 lines
636 B
Nix
Raw Normal View History

2021-08-03 07:20:06 -07:00
{
description = "Worther - Calculate cryptocurrency taxes & net worth.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }: with nixpkgs.lib;
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
worther = callPackage ./worther.nix { pkgs = nixpkgs; };
in rec {
packages = flake-utils.lib.flattenTree {
worther = nixpkgs.legacyPackages.x86_64-linux.worther;
};
defaultPackage = packages.worther;
});
}