flake setup and fragmented
This commit is contained in:
31
flake.nix
31
flake.nix
@@ -1,33 +1,18 @@
|
||||
{
|
||||
description = "Nix flake for the activity logging script";
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
{ self, nixpkgs, ... }@inputs:
|
||||
{
|
||||
packages.x86_64-linux.tuh-activity-logger =
|
||||
packages.x86_64-linux =
|
||||
let
|
||||
pname = "tuh-activity-logger";
|
||||
version = "1.0";
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
inherit (self) outputs;
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
pkgs.python3Packages.buildPythonApplication {
|
||||
inherit pname version;
|
||||
src = builtins.path {
|
||||
path = ./tuhmayto/.;
|
||||
name = "${pname}-${version}";
|
||||
{
|
||||
tuh-activity-logger = import ./pkgs/tuh-activity-logger/default.nix {
|
||||
inherit (pkgs) python3Packages sqlite;
|
||||
};
|
||||
build-system = [ pkgs.python3Packages.setuptools ];
|
||||
dependencies =
|
||||
[
|
||||
pkgs.sqlite
|
||||
]
|
||||
++ builtins.attrValues {
|
||||
inherit (pkgs.python3Packages)
|
||||
beautifulsoup4
|
||||
requests
|
||||
matplotlib
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user