nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 842 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "bomutils"; 9 version = "0.2"; 10 11 src = fetchFromGitHub { 12 owner = "hogliux"; 13 repo = "bomutils"; 14 tag = finalAttrs.version; 15 sha256 = "1i7nhbq1fcbrjwfg64znz8p4l7662f7qz2l6xcvwd5z93dnmgmdr"; 16 }; 17 18 makeFlags = [ 19 "PREFIX=$(out)" 20 "CXX=${stdenv.cc.targetPrefix}c++" 21 ]; 22 23 # fix 24 # src/lsbom.cpp:70:10: error: reference to 'data' is ambiguous 25 # which refers to std::data from C++17 26 env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 27 28 meta = { 29 homepage = "https://github.com/hogliux/bomutils"; 30 description = "Open source tools to create bill-of-materials files used in macOS installers"; 31 platforms = lib.platforms.all; 32 license = lib.licenses.gpl2Plus; 33 maintainers = with lib.maintainers; [ prusnak ]; 34 }; 35})