blob: 52e06519711ce8173e0620d3be1d263f9a469201 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# SPDX-FileCopyrightText: 2023 Alyssa Ross <hi@alyssa.is>
# SPDX-License-Identifier: MIT
import ../../lib/call-package.nix ({ src, pkgsStatic }:
pkgsStatic.callPackage ({ lib, stdenv, clang-tools }:
stdenv.mkDerivation (finalAttrs: {
name = "lseek";
src = lib.fileset.toSource {
root = ../..;
fileset = lib.fileset.intersection src ./.;
};
sourceRoot = "source/tools/lseek";
makeFlags = [ "prefix=$(out)" ];
enableParallelBuilding = true;
passthru.tests = {
clang-tidy = finalAttrs.finalPackage.overrideAttrs (
{ nativeBuildInputs ? [], ... }:
{
nativeBuildInputs = nativeBuildInputs ++ [ clang-tools ];
buildPhase = ''
clang-tidy --warnings-as-errors='*' lseek.c --
touch $out
exit 0
'';
}
);
};
meta = with lib; {
description = "Seek an open file descriptor, then exec.";
license = licenses.eupl12;
maintainers = with maintainers; [ qyliss ];
platforms = platforms.unix;
};
})
) {}) (_: {})
|