e0464e4788
In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ```
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, lib, python3Packages, fetchFromGitHub, gtk3, gobject-introspection, ffmpeg, wrapGAppsHook3 }:
|
|
|
|
with python3Packages;
|
|
buildPythonApplication rec {
|
|
pname = "gnomecast";
|
|
version = "unstable-2022-04-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keredson";
|
|
repo = "gnomecast";
|
|
rev = "d42d8915838b01c5cadacb322909e08ffa455d4f";
|
|
sha256 = "sha256-CJpbBuRzEjWb8hsh3HMW4bZA7nyDAwjrERCS5uGdwn8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 ];
|
|
propagatedBuildInputs = [
|
|
pychromecast
|
|
bottle
|
|
pycaption
|
|
paste
|
|
html5lib
|
|
pygobject3
|
|
dbus-python
|
|
gtk3
|
|
gobject-introspection
|
|
];
|
|
|
|
# NOTE: gdk-pixbuf setup hook does not run with strictDeps
|
|
# https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-hooks-gobject-introspection
|
|
strictDeps = false;
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
|
'';
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Native Linux GUI for Chromecasting local files";
|
|
homepage = "https://github.com/keredson/gnomecast";
|
|
license = with licenses; [ gpl3 ];
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
mainProgram = "gnomecast";
|
|
};
|
|
}
|