Add boilerplate

This commit is contained in:
Sven van Heugten 2026-03-05 16:54:34 +01:00
commit 4234866a38
No known key found for this signature in database
GPG key ID: D612F88666F4F660
6 changed files with 354 additions and 0 deletions

28
default.nix Normal file
View file

@ -0,0 +1,28 @@
{
stdenv,
python3,
python3Packages,
}:
stdenv.mkDerivation {
pname = "mechanicaldiff";
version = "0.0.1";
src = ./bin;
buildInputs = [ python3 ];
doCheck = true;
nativeCheckInputs = [ python3Packages.flake8 ];
checkPhase = ''
flake8 mechanicaldiff.py
'';
installPhase = ''
mkdir -p $out/bin
cp mechanicaldiff.py $out/bin/mechanicaldiff
chmod +x $out/bin/mechanicaldiff
'';
}