Skip to content

Commit

Permalink
[nix] try port
Browse files Browse the repository at this point in the history
  • Loading branch information
neg-serg committed Jan 25, 2024
1 parent 34b9297 commit 186c80b
Show file tree
Hide file tree
Showing 5 changed files with 216 additions and 6 deletions.
Empty file added app/__init__.py
Empty file.
175 changes: 175 additions & 0 deletions flake.lock

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

33 changes: 33 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
description = "Application packaged using poetry2nix";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
# see https://github.com/nix-community/poetry2nix/tree/master#api for more functions and examples.
pkgs = nixpkgs.legacyPackages.${system};
inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication;
propagatedBuildInputs = [
pkgs.python3.xlib
];
in
{
packages = {
negwm = mkPoetryApplication { projectDir = self; };
default = self.packages.${system}.negwm;
};

devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.negwm ];
packages = [ pkgs.poetry ];
};
});
}
7 changes: 7 additions & 0 deletions poetry.lock

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

7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,11 @@ asyncinotify='*'
docopt='*'
ewmh='*'
i3ipc='*'
inotipy='*'
promptx='*'
psutil='*'
python3-xlib='*'
python='^3.10'
rich='*'
ruamel-yaml='*'
systemd='*'

Xlib='*'
#python3-xlib='*'

[tool.poetry.dev-dependencies]

Expand Down

0 comments on commit 186c80b

Please sign in to comment.