Skip to content

Commit

Permalink
nix: Use lib.fileset to set pianotrans src
Browse files Browse the repository at this point in the history
This make `nix run .#` get the current git version of PianoTrans.py
  • Loading branch information
azuwis committed Jan 8, 2024
1 parent 37b5d32 commit 58b4e6e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions nix/pianotrans/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{ lib
, fetchFromGitHub
, python3
, ffmpeg
}:

python3.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication {
pname = "pianotrans";
version = "1.0.1";
format = "setuptools";

src = fetchFromGitHub {
owner = "azuwis";
repo = pname;
rev = "v${version}";
hash = "sha256-gRbyUQmPtGvx5QKAyrmeJl0stp7hwLBWwjSbJajihdE=";
src = with lib.fileset; toSource {
root = ../../.;
fileset = unions [
../../PianoTrans.py
../../setup.py
];
};

propagatedBuildInputs = with python3.pkgs; [
Expand Down

0 comments on commit 58b4e6e

Please sign in to comment.