summaryrefslogtreecommitdiff
path: root/overlays/smartprom/default.nix
blob: 57ab6f112ab1f1468e94f18784c758da2ebc27c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ prev, sources, ... }:
{
  smartprom =
    with prev.poetry2nix;
    mkPoetryApplication {
      inherit (sources.smartprom) pname version;
      projectDir = cleanPythonSources {
        src = prev.runCommand "sources" {} ''
          mkdir $out
          cp -r ${sources.smartprom.src}/. $out

          mkdir $out/smartprom
          mv $out/smartprom.py $out/smartprom/__main__.py
          echo >> $out/smartprom/__init__.py

          cp ${./pyproject.toml} $out/pyproject.toml
          cp ${./poetry.lock} $out/poetry.lock
        '';
      };
    };
}