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
25 lines
794 B
Nix
25 lines
794 B
Nix
{ lib, stdenv, fetchgit, autoreconfHook, libselinux, libuuid, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "f2fs-tools";
|
|
version = "1.14.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "06ss05n87i1c3149qb3n7j1qp2scv3g2adx0v6ljkl59ab9b5saj";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ libselinux libuuid ];
|
|
|
|
patches = [ ./f2fs-tools-cross-fix.patch ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/";
|
|
description = "Userland tools for the f2fs filesystem";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ehmry jagajaga ];
|
|
};
|
|
}
|