Skip to content

Commit 1f551c4

Browse files
Jegprien
authored andcommitted
Added a flake run configuration
1 parent 3ad7c17 commit 1f551c4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

flake.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,22 @@
1717
pkgs = import nixpkgs {
1818
inherit system overlays;
1919
};
20+
restream-bin = pkgs.stdenv.mkDerivation {
21+
name = "restream";
22+
version = "0.0.1";
23+
src = ./.;
24+
nativeBuildInputs = [ pkgs.makeWrapper pkgs.lz4 pkgs.ffmpeg-full ];
25+
buildInputs = [ pkgs.lz4 ];
26+
27+
installPhase = ''
28+
install -m755 -D reStream.sh $out/bin/restream
29+
wrapProgram $out/bin/restream --prefix PATH : ${pkgs.lib.makeBinPath [pkgs.lz4 pkgs.ffmpeg-full]}
30+
'';
31+
};
2032
in
2133
with pkgs;
2234
{
2335
devShell = (import ./default.nix).devShell pkgs;
36+
packages.default = restream-bin;
2437
});
2538
}

0 commit comments

Comments
 (0)