mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
36 lines
1019 B
Nix
36 lines
1019 B
Nix
{ lib, stdenv, mkDerivation, fetchFromGitLab, fetchpatch, pkg-config, qmake, qtx11extras, qttools, mpv }:
|
|
|
|
mkDerivation rec {
|
|
pname = "mpc-qt";
|
|
version = "2019-06-09";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "mpc-qt";
|
|
repo = "mpc-qt";
|
|
rev = "2abe6e7fc643068d50522468fe75d614861555ad";
|
|
sha256 = "1cis8dl9pm91mpnp696zvwsfp96gkwr8jgs45anbwd7ldw78w4x5";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://gitlab.com/mpc-qt/mpc-qt/-/commit/02f2bc7a22e863a89ba322b9acb61cf1aef23ba0.diff";
|
|
sha256 = "0khld55i194zgi18d0wch5459lfzzkbfdbl1im8akvq8ks5xijis";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config qmake qttools ];
|
|
|
|
buildInputs = [ mpv qtx11extras ];
|
|
|
|
qmakeFlags = [ "QMAKE_LUPDATE=${qttools.dev}/bin/lupdate" ];
|
|
|
|
meta = with lib; {
|
|
description = "Media Player Classic Qute Theater";
|
|
homepage = "https://gitlab.com/mpc-qt/mpc-qt";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
broken = stdenv.isDarwin;
|
|
maintainers = with maintainers; [ romildo ];
|
|
};
|
|
}
|