Skip to content

Commit

Permalink
chore: add nix flake and test for development
Browse files Browse the repository at this point in the history
  • Loading branch information
DCsunset committed Feb 28, 2024
1 parent a6097e8 commit f281120
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
64 changes: 64 additions & 0 deletions flake.lock

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

26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};

outputs = inputs@{ nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
];

perSystem = { self', system, pkgs, ... }: let
# common dependencies
deps = with pkgs.python3Packages; [
i3ipc
];
in {
devShells = {
default = pkgs.mkShell {
packages = deps;
};
};
};
};
}
10 changes: 10 additions & 0 deletions test/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python

import sys

# use local package
sys.path.insert(0, '..')

from i3_focus_group.main import main

main()

0 comments on commit f281120

Please sign in to comment.