init
This commit is contained in:
34
flake.nix
Normal file
34
flake.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
description = "RomM Duplicate Finder";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pythonEnv = pkgs.python3.withPackages (
|
||||
ps: with ps; [
|
||||
requests
|
||||
]
|
||||
);
|
||||
in
|
||||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pythonEnv
|
||||
];
|
||||
shellHook = ''
|
||||
echo "RomM Duplicate Finder development environment"
|
||||
echo "Python: $(python --version)"
|
||||
echo "Available packages: requests"
|
||||
'';
|
||||
};
|
||||
|
||||
packages.${system}.default = pkgs.writeScriptBin "romm-dupe-finder" ''
|
||||
#!${pythonEnv}/bin/python
|
||||
${builtins.readFile ./main.py}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user