restructured config directory

This commit is contained in:
Thilo Billerbeck 2023-10-28 23:16:29 +02:00
parent 0ea46ec3a4
commit e615e06990
43 changed files with 583 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "docker-craft-cms-dev-env";
version = "unstable-2023-04-14";
src = fetchFromGitHub {
owner = "codemonauts";
repo = "docker-craft-cms-dev-env";
rev = "5053d61654bc720fd61e011642e925a99d81baa0";
hash = "sha256-VNL/cyECDx0FSn2xMHMQDbJ3d0y7SEKPZ2EzotQy/PA=";
};
postInstall = ''
mkdir -p $out/bin
cp -r $src/bin/craft $out/bin/craft
'';
meta = with lib; {
description = "Docker image for local development of sites based on Craft CMS";
homepage = "https://github.com/codemonauts/docker-craft-cms-dev-env";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -0,0 +1,34 @@
{ lib
, stdenv
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "spx-gc";
version = "1.1.2";
src = fetchFromGitHub {
owner = "TuomoKu";
repo = "SPX-GC";
rev = "v.${version}";
hash = "sha256-NVppqlQOpOmBtsoDVhaIiHzc360ek273rpr2i9p8WK8=";
};
dontNpmBuild = true;
npmDepsHash = "sha256-TGiurf/vwGV1KBxQXl0gVDNeZZWrW1Yku3fhTmh3nhk=";
postInstall = ''
mkdir -p $out/locales
cp -r $src/locales/* $out/locales
'';
meta = with lib; {
description = "SPX is a graphics control client for live video productions and live streams using CasparCG, OBS, vMix, or similar software";
homepage = "https://github.com/TuomoKu/SPX-GC#npminstall";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "spx";
};
}

View file

@ -0,0 +1,7 @@
{ lib, python3Packages }:
with python3Packages;
buildPythonApplication {
name = "toggl-time-grouper";
src = ./.;
propagatedBuildInputs = [ pandas ];
}

View file

@ -0,0 +1,9 @@
#!/usr/bin/env python3
from distutils.core import setup
setup(
name='toggl-time-grouper',
version='0.0.1',
scripts=['toggl-time-grouper'],
)

View file

@ -0,0 +1,15 @@
#!/usr/bin/env python3
import pandas as pd
import sys
from pathlib import Path
df = pd.read_csv(sys.argv[1])
df = df.drop(columns=['User', 'Email', 'Billable', 'Tags', 'Amount ()', 'Start time', 'End date', 'End time'])
df['Duration'] = pd.to_timedelta(df['Duration'])
df['Start date'] = pd.to_datetime(df['Start date'])
df = df.groupby(['Project','Description','Start date'])['Duration'].sum()
df.to_csv(Path(sys.argv[1]).stem + '-grouped.csv')