nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (926B)


      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   src = fetchFromGitHub {
     15     owner = "benman64";
     16     repo = "subprocess";
     17     rev = "v${finalAttrs.version}";
     18     hash = "sha256-Tgmihv7SJfYpOYHvtuE8rgFzUHyl4bJh9W5CSqotVMg=";
     19   };
     20 
     21   nativeBuildInputs = [
     22     cmake
     23     cxxtest
     24   ];
     25 
     26   buildInputs = [ python3 ];
     27 
     28   installPhase = ''
     29     install -Dm644 $src/src/cpp/*.hpp -t $out/include
     30     install -Dm644 $src/src/cpp/subprocess/*.hpp -t $out/include/subprocess
     31     install -Dm644 subprocess/libsubprocess.a -t $out/lib
     32   '';
     33 
     34   meta = {
     35     description = "Cross platform subprocess library for c++ similar to design of python subprocess";
     36     homepage = "https://github.com/benman64/subprocess";
     37     license = lib.licenses.mit;
     38     maintainers = [ lib.maintainers.sikmir ];
     39     platforms = lib.platforms.unix;
     40   };
     41 })