Add boilerplate
This commit is contained in:
commit
4234866a38
6 changed files with 354 additions and 0 deletions
28
default.nix
Normal file
28
default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue