forked from rarias/bscpkgs
Compare commits
2 Commits
update-par
...
4e00787b15
| Author | SHA1 | Date | |
|---|---|---|---|
|
4e00787b15
|
|||
| 2c8d7ed855 |
22
flake.nix
22
flake.nix
@@ -3,15 +3,33 @@
|
|||||||
|
|
||||||
outputs = { self, nixpkgs, ...}:
|
outputs = { self, nixpkgs, ...}:
|
||||||
let
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
# For now we only support x86
|
# For now we only support x86
|
||||||
system = "x86_64-linux";
|
|
||||||
overlays = [ self.overlays.default ];
|
overlays = [ self.overlays.default ];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
bscOverlay = import ./overlay.nix;
|
bscOverlay = import ./overlay.nix;
|
||||||
overlays.default = self.bscOverlay;
|
overlays.default = self.bscOverlay;
|
||||||
legacyPackages.x86_64-linux = pkgs;
|
|
||||||
|
# full nixpkgs with our overlay applied
|
||||||
|
legacyPackages.${system} = pkgs;
|
||||||
|
|
||||||
|
# packages added by our overlay
|
||||||
|
packages.${system} =
|
||||||
|
let
|
||||||
|
inherit (builtins) attrNames removeAttrs;
|
||||||
|
inherit (nixpkgs.lib) flip filterAttrs getAttrs pipe isDerivation;
|
||||||
|
in
|
||||||
|
# extract the names of the packages from the overlay, then get the
|
||||||
|
# actual packages from the full package set with the overlay applied
|
||||||
|
pipe (self.overlays.default null null) [
|
||||||
|
attrNames
|
||||||
|
(flip getAttrs pkgs)
|
||||||
|
(flip removeAttrs [ "bsc" ])
|
||||||
|
(filterAttrs (_: isDerivation))
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
, pkg-config
|
, pkg-config
|
||||||
, numactl
|
, numactl
|
||||||
, hwloc
|
, hwloc
|
||||||
|
, papi
|
||||||
|
, enablePapi ? true
|
||||||
, cacheline ? 64 # bits
|
, cacheline ? 64 # bits
|
||||||
, ovni ? null
|
, ovni ? null
|
||||||
, useGit ? false
|
, useGit ? false
|
||||||
@@ -56,5 +58,5 @@ in
|
|||||||
numactl
|
numactl
|
||||||
hwloc
|
hwloc
|
||||||
ovni
|
ovni
|
||||||
];
|
] ++ lib.optionals enablePapi [ papi ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user