Skip to content

Commit

Permalink
flake: finish
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Oct 17, 2024
1 parent ac62431 commit 08ee095
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
description = "Miniconf";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
outputs =
{ self, nixpkgs }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
aiomqtt22 = pkgs.python3Packages.aiomqtt.overrideAttrs rec {
version = "2.2.0";
src = pkgs.fetchFromGitHub {
owner = "sbtinstruments";
repo = "aiomqtt";
rev = "refs/tags/v${version}";
hash = "sha256-Sn9wGN93g61tPxuUZbGuElBXqnMEzJilfl3uvnKdIG0=";
owner = "sbtinstruments";
repo = "aiomqtt";
rev = "refs/tags/v${version}";
hash = "sha256-Sn9wGN93g61tPxuUZbGuElBXqnMEzJilfl3uvnKdIG0=";
};
propagatedBuildInputs = [
pkgs.python3Packages.paho-mqtt_2
pkgs.python3Packages.typing-extensions
pkgs.python3Packages.paho-mqtt_2
pkgs.python3Packages.typing-extensions
];
};
miniconf-mqtt-py = pkgs.python3Packages.buildPythonPackage {
Expand All @@ -32,14 +33,15 @@
];
# checkPhase = "python -m miniconf";
};
in {
in
{
packages.x86_64-linux = {
inherit miniconf-mqtt-py aiomqtt22;
default = miniconf-mqtt-py;
};
devShells.x86_64-linux.default = pkgs.mkShellNoCC {
name = "miniconf-dev-shell";
buildInputs = (pkgs.python3.withPackages(ps: with ps; [ miniconf-mqtt-py ]))
packages = [ miniconf-mqtt-py ];
};
};
}

0 comments on commit 08ee095

Please sign in to comment.