Skip to content

Commit

Permalink
nix: visr src as flake input
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjnixon committed Nov 21, 2023
1 parent ce8e9ee commit b8c112a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
flake = false;
};

outputs = { self, nixpkgs, flake-utils, ear_src, libear_src }:
inputs.visr_src = {
url = "https://github.com/ebu/bear/releases/download/v0.0.1-pre/visr-0.13.0-pre-5e13f020.zip";
flake = false;
};

outputs = { self, nixpkgs, flake-utils, ear_src, libear_src, visr_src }:
flake-utils.lib.eachDefaultSystem
(system:
let
Expand Down Expand Up @@ -60,7 +65,7 @@
ear = pkgs.callPackage ./nix/ear.nix { inherit python; src = ear_src; };
libear = pkgs.callPackage ./nix/libear.nix { inherit xsimd; src = libear_src; };

visr = pkgs.callPackage ./nix/visr.nix { inherit python; };
visr = pkgs.callPackage ./nix/visr.nix { inherit python; src = visr_src; };
visr_python = python.pkgs.toPythonModule visr;

visr_bear = pkgs.callPackage ./nix/visr_bear.nix { inherit python data_files libear visr_python; src = visr_bear_src; };
Expand Down
7 changes: 2 additions & 5 deletions nix/visr.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{ stdenv, cmake, python, boost, fetchzip }:
{ stdenv, cmake, python, boost, fetchzip, src }:
stdenv.mkDerivation rec {
name = "VISR";
src = fetchzip {
url = "https://github.com/ebu/bear/releases/download/v0.0.1-pre/visr-0.13.0-pre-5e13f020.zip";
sha256 = "1jgrzjlh5kqbq06vz6pnn6yvml1bqjk33rblqfqja7v02b0pzv07";
};
inherit src;
nativeBuildInputs = [ cmake boost python.buildEnv ];
cmakeFlags = [
"-DBUILD_AUDIOINTERFACES_PORTAUDIO=FALSE"
Expand Down

0 comments on commit b8c112a

Please sign in to comment.