package.nix (955B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 cxxtest, 7 python3, 8 }: 9 10 stdenv.mkDerivation (finalAttrs: { 11 pname = "subprocess"; 12 version = "0.4.0"; 13 14 __structuredAttrs = true; 15 16 src = fetchFromGitHub { 17 owner = "benman64"; 18 repo = "subprocess"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-Tgmihv7SJfYpOYHvtuE8rgFzUHyl4bJh9W5CSqotVMg="; 21 }; 22 23 nativeBuildInputs = [ 24 cmake 25 cxxtest 26 ]; 27 28 buildInputs = [ python3 ]; 29 30 installPhase = '' 31 install -Dm644 $src/src/cpp/*.hpp -t $out/include 32 install -Dm644 $src/src/cpp/subprocess/*.hpp -t $out/include/subprocess 33 install -Dm644 subprocess/libsubprocess.a -t $out/lib 34 ''; 35 36 meta = { 37 description = "Cross platform subprocess library for c++ similar to design of python subprocess"; 38 homepage = "https://github.com/benman64/subprocess"; 39 license = lib.licenses.mit; 40 maintainers = [ lib.maintainers.sikmir ]; 41 platforms = lib.platforms.unix; 42 }; 43 })
