mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
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" ```
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, which
|
|
, pkg-config
|
|
, zip
|
|
, imagemagick
|
|
, qt5
|
|
, taglib
|
|
, gst_all_1
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nulloy";
|
|
version = "0.9.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nulloy";
|
|
repo = "nulloy";
|
|
rev = version;
|
|
hash = "sha256-vFg789vBV7ks+4YiWWl3u0/kQjzpAiX8dMfXU0hynDM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
which # used by configure script
|
|
pkg-config
|
|
zip
|
|
imagemagick
|
|
qt5.qttools
|
|
qt5.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qt5.qtscript
|
|
qt5.qtsvg
|
|
taglib
|
|
] ++ (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-bad
|
|
gst-plugins-ugly
|
|
]);
|
|
|
|
prefixKey = "--prefix ";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# FIXME: not added by gstreamer setup hook by default
|
|
preFixup = ''
|
|
qtWrapperArgs+=(
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Music player with a waveform progress bar";
|
|
homepage = "https://nulloy.com";
|
|
changelog = "https://github.com/nulloy/nulloy/blob/${src.rev}/ChangeLog";
|
|
license = licenses.gpl3Only;
|
|
mainProgram = "nulloy";
|
|
maintainers = with maintainers; [ aleksana ];
|
|
platforms = platforms.all;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|