Init repo

This commit is contained in:
2024-03-14 19:17:47 +01:00
commit bc8bc281ab
7 changed files with 113 additions and 0 deletions

2
pyscript/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
__pycache__
result

35
pyscript/flake.nix Normal file
View File

@@ -0,0 +1,35 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }: {
packages.x86_64-linux = let
pkgs = import nixpkgs {
system = "x86_64-linux";
};
in {
my_project = pkgs.python311Packages.buildPythonPackage rec {
pname = "my_project";
version = "0.0.1";
src = ./.;
format = "other";
propagatedBuildInputs = with pkgs.python311Packages; [
];
installPhase = ''
mkdir -p $out/bin
cp my_project.py $out/bin/my_project
'';
};
default = self.packages.x86_64-linux.my_project;
};
hydraJobs = {
inherit (self)
packages;
};
};
}