nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 692 B view raw
1{ 2 lib, 3 stdenv, 4 buildDunePackage, 5 fetchFromGitHub, 6 autoconf, 7}: 8 9buildDunePackage (finalAttrs: { 10 pname = "cpu"; 11 version = "2.0.0"; 12 13 src = fetchFromGitHub { 14 owner = "UnixJunkie"; 15 repo = "cpu"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-O0pvNRONlprQ4XVG3858cnDo0WDJWOaEfH3DFeAzOe4="; 18 }; 19 20 preConfigure = '' 21 autoconf 22 autoheader 23 ''; 24 25 nativeBuildInputs = [ autoconf ]; 26 27 hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "strictoverflow"; 28 29 meta = { 30 homepage = "https://github.com/UnixJunkie/cpu"; 31 description = "Core pinning library"; 32 maintainers = [ lib.maintainers.bcdarwin ]; 33 license = lib.licenses.lgpl2; 34 }; 35})