scriptlib

This commit is contained in:
Jana Dönszelmann 2025-08-25 14:04:31 +02:00
parent ddb92ea0c5
commit 816c61985d
No known key found for this signature in database
5 changed files with 67 additions and 19 deletions

View file

@ -1,22 +1,11 @@
{ pkgs, ... }:
{
calc = "${pkgs.python313}/bin/python -i ${pkgs.writeText "init.py" ''
from math import *;
# import numpy as np
kilo = 1000
mega = 1000 * kilo
giga = 1000 * mega
tera = 1000 * giga
peta = 1000 * tera
b = 1
kib = 1024
mib = 1024 * kib
gib = 1024 * mib
tib = 1024 * gib
pib = 1024 * tib
import sys
sys.path.append("${../../scriptlib}")
sys.path.append("${pkgs.python313Packages.numpy}/lib/python3.13/site-packages/")
from scriptlib import *
''} ";
cp-media =
name: media: