mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 13:35:13 +00:00
fx_cast_bridge: 0.0.3 -> 0.0.4
https://github.com/hensm/fx_cast/releases/tag/v0.0.4 (cherry picked from commit c8e255962e89795f50268e1e370fdba31f759994)
This commit is contained in:
parent
c4e9dd4e57
commit
2488f6a4a5
@ -2,18 +2,18 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fx_cast_bridge";
|
pname = "fx_cast_bridge";
|
||||||
version = "0.0.3";
|
version = "0.0.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/hensm/fx_cast/releases/download/v${version}/fx_cast_bridge-${version}-x64.deb";
|
url = "https://github.com/hensm/fx_cast/releases/download/v${version}/fx_cast_bridge-${version}-x64.deb";
|
||||||
sha256 = "0wqm0spmffn31yd23ych6fjxhzfxhj92379h0qdjh2xr3as4yh4n";
|
sha256 = "1p6d8idbaaqr80vxrmmyfcr5nwb0sk5vwrmizflg39p5zasmmhy2";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ dpkg ];
|
nativeBuildInputs = [ dpkg ];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
runHook preUnpack
|
runHook preUnpack
|
||||||
dpkg-deb -x $src ./
|
dpkg-deb -xv $src ./
|
||||||
runHook postUnpack
|
runHook postUnpack
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -21,18 +21,18 @@ stdenv.mkDerivation rec {
|
|||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -DT {opt/fx_cast,$out/bin}/bridge
|
install -DT {opt/fx_cast,$out/bin}/fx_cast_bridge
|
||||||
install -DT {usr,$out}/lib/mozilla/native-messaging-hosts/fx_cast_bridge.json
|
install -DT {usr,$out}/lib/mozilla/native-messaging-hosts/fx_cast_bridge.json
|
||||||
|
|
||||||
substituteInPlace $out/lib/mozilla/native-messaging-hosts/fx_cast_bridge.json \
|
substituteInPlace $out/lib/mozilla/native-messaging-hosts/fx_cast_bridge.json \
|
||||||
--replace /opt/fx_cast/bridge $out/bin/bridge
|
--replace {opt/fx_cast,$out/bin}/fx_cast_bridge
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# See now-cli/default.nix
|
# See now-cli/default.nix
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
preFixup = let
|
preFixup = let
|
||||||
libPath = stdenv.lib.makeLibraryPath [stdenv.cc.cc];
|
libPath = stdenv.lib.makeLibraryPath [stdenv.cc.cc];
|
||||||
bin = "$out/bin/bridge";
|
bin = "$out/bin/fx_cast_bridge";
|
||||||
in ''
|
in ''
|
||||||
|
|
||||||
orig_size=$(stat --printf=%s ${bin})
|
orig_size=$(stat --printf=%s ${bin})
|
||||||
|
Loading…
Reference in New Issue
Block a user