Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPackages, 5 fetchFromGitHub, 6 pkg-config, 7 popt, 8 mandoc, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "efivar"; 13 version = "39"; 14 15 outputs = [ 16 "bin" 17 "out" 18 "dev" 19 "man" 20 ]; 21 22 src = fetchFromGitHub { 23 owner = "rhboot"; 24 repo = "efivar"; 25 rev = version; 26 hash = "sha256-s/1k5a3n33iLmSpKQT5u08xoj8ypjf2Vzln88OBrqf0="; 27 }; 28 29 nativeBuildInputs = [ 30 pkg-config 31 mandoc 32 ]; 33 buildInputs = [ popt ]; 34 depsBuildBuild = [ buildPackages.stdenv.cc ]; 35 36 makeFlags = [ 37 "prefix=$(out)" 38 "libdir=$(out)/lib" 39 "bindir=$(bin)/bin" 40 "mandir=$(man)/share/man" 41 "includedir=$(dev)/include" 42 "PCDIR=$(dev)/lib/pkgconfig" 43 ]; 44 45 meta = with lib; { 46 description = "Tools and library to manipulate EFI variables"; 47 homepage = "https://github.com/rhboot/efivar"; 48 platforms = platforms.linux; 49 license = licenses.lgpl21Only; 50 # See https://github.com/NixOS/nixpkgs/issues/388309 51 broken = stdenv.hostPlatform.is32bit; 52 }; 53}