blob: 3e2349818818cc194d231a64851e6d7725648724 (
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
44
45
46
|
{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "catnest";
version = "0.2.1";
src = fetchFromGitHub {
owner = "eweOS";
repo = "catnest";
rev = "v${finalAttrs.version}";
hash = "sha256-/t1clnxBNU5lfTjtUbt5eOl5KPeAfG8Hq6jBVMqkkWY=";
};
nativeBuildInputs = [ installShellFiles ];
buildPhase = ''
runHook preBuild
$CC catnest.c -o catnest -std=gnu99
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm755 catnest -t $out/bin
installManPage catnest.1
runHook postInstall
'';
meta = {
description = "Small, single-file and POSIX-compatible substituion for systemd-sysusers";
homepage = "https://github.com/eweOS/catnest";
license = lib.licenses.mit;
mainProgram = "catnest";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.unix;
};
})
|