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
26 lines
757 B
Nix
26 lines
757 B
Nix
{ lib, stdenv, fetchFromGitHub, libuv, lz4, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "maxcso";
|
|
version = "1.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unknownbrackets";
|
|
repo = "maxcso";
|
|
rev = "v${version}";
|
|
sha256 = "10r0vb3ndpq1pw5224d48nim5xz8jj94zhlfy29br6h6jblq8zap";
|
|
};
|
|
|
|
buildInputs = [ libuv lz4 zlib ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/unknownbrackets/maxcso";
|
|
description =
|
|
"A fast ISO to CSO compression program for use with PSP and PS2 emulators, which uses multiple algorithms for best compression ratio";
|
|
maintainers = with maintainers; [ david-sawatzke ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.isc;
|
|
};
|
|
}
|