update-from-hydra/flake.nix

38 lines
920 B
Nix
Raw Normal View History

2023-07-21 21:46:03 +02:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }: {
packages.x86_64-linux = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
update-from-hydra = pkgs.python3Packages.buildPythonPackage rec {
pname = "update-from-hydra";
version = "0.0.1";
src = ./.;
format = "pyproject";
buildInputs = [ pkgs.python3Packages.hatchling ];
propagatedBuildInputs = [ pkgs.python3Packages.requests ];
};
default = self.packages.x86_64-linux.update-from-hydra;
};
apps.x86_64-linux = {
update-from-hydra = {
type = "app";
program = self.packages.x86_64-linux.update-from-hydra + "/bin/update-from-hydra";
};
default = self.apps.x86_64-linux.update-from-hydra;
};
hydraJobs = {
inherit (self)
packages;
};
};
}