nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 933 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "catnest"; 10 version = "0.2.1"; 11 12 src = fetchFromGitHub { 13 owner = "eweOS"; 14 repo = "catnest"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-/t1clnxBNU5lfTjtUbt5eOl5KPeAfG8Hq6jBVMqkkWY="; 17 }; 18 19 nativeBuildInputs = [ installShellFiles ]; 20 21 buildPhase = '' 22 runHook preBuild 23 24 $CC catnest.c -o catnest -std=gnu99 25 26 runHook postBuild 27 ''; 28 29 installPhase = '' 30 runHook preInstall 31 32 install -Dm755 catnest -t $out/bin 33 installManPage catnest.1 34 35 runHook postInstall 36 ''; 37 38 meta = { 39 description = "Small, single-file and POSIX-compatible substituion for systemd-sysusers"; 40 homepage = "https://github.com/eweOS/catnest"; 41 license = lib.licenses.mit; 42 mainProgram = "catnest"; 43 maintainers = with lib.maintainers; [ aleksana ]; 44 platforms = lib.platforms.unix; 45 }; 46})