mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00: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
30 lines
715 B
Nix
30 lines
715 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
version = "unstable-2018-10-18";
|
|
pname = "ps2client";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ps2dev";
|
|
repo = "ps2client";
|
|
rev = "92fcaf18aabf74daaed40bd50d428cce326a87c0";
|
|
sha256 = "1rlmns44pxm6dkh6d3cz9sw8v7pvi53r7r5r3kgwdzkhixjj0cdg";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i -e "s|-I/usr/include||g" -e "s|-I/usr/local/include||g" Makefile
|
|
'';
|
|
|
|
installPhase = ''
|
|
make PREFIX=$out install
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Desktop clients to interact with ps2link and ps2netfs";
|
|
homepage = "https://github.com/ps2dev/ps2client";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|