feat nix: Add nix flake

This commit is contained in:
iliayar 2023-08-04 02:32:14 +03:00
parent c710e76912
commit 5197977a26
No known key found for this signature in database
GPG key ID: 3FE87CB13CB3AC4E
4 changed files with 98 additions and 0 deletions

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
description = "pyprland";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
packages = rec {
pyprland = pkgs.poetry2nix.mkPoetryApplication {
projectDir = ./.;
python = pkgs.python310;
};
default = pyprland;
};
}
);
}