nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 autoreconfHook, 5 fetchFromGitHub, 6 glibc, 7 nixosTests, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "catatonit"; 12 version = "0.2.1"; 13 14 src = fetchFromGitHub { 15 owner = "openSUSE"; 16 repo = "catatonit"; 17 rev = "v${version}"; 18 sha256 = "sha256-sc/T4WjCPFfwUWxlBx07mQTmcOApblHygfVT824HcJM="; 19 }; 20 21 nativeBuildInputs = [ autoreconfHook ]; 22 buildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [ 23 glibc 24 glibc.static 25 ]; 26 27 enableParallelBuilding = true; 28 strictDeps = true; 29 30 doInstallCheck = true; 31 installCheckPhase = '' 32 readelf -d $out/bin/catatonit | grep 'There is no dynamic section in this file.' 33 ''; 34 35 passthru.tests = { inherit (nixosTests) podman; }; 36 37 meta = with lib; { 38 description = "Container init that is so simple it's effectively brain-dead"; 39 homepage = "https://github.com/openSUSE/catatonit"; 40 license = licenses.gpl2Plus; 41 maintainers = with maintainers; [ erosennin ]; 42 teams = [ teams.podman ]; 43 platforms = platforms.linux; 44 mainProgram = "catatonit"; 45 }; 46}