Compare commits
2 commits
4f10f70c70
...
7f81b391c1
Author | SHA1 | Date | |
---|---|---|---|
7f81b391c1 | |||
bc5c7553db |
1 changed files with 17 additions and 8 deletions
|
@ -2,11 +2,20 @@ self: super:
|
|||
|
||||
let
|
||||
nixos = self.config.nixos or true;
|
||||
unstableRevision = self.config.unstableRevision or null;
|
||||
unstableRevisionHash = self.config.unstableRevisionHash or null;
|
||||
useUnstable = self.config.useUnstable or true;
|
||||
|
||||
unstablePkgsExprs = if nixos
|
||||
then builtins.fetchTarball "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
||||
else builtins.fetchTarball "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
|
||||
unstablePkgsExprs = if !builtins.isNull unstableRevision
|
||||
then if !builtins.isNull unstableRevisionHash
|
||||
then builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/${unstableRevision}.tar.gz";
|
||||
sha256 = unstableRevisionHash;
|
||||
}
|
||||
else builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${unstableRevision}.tar.gz"
|
||||
else if nixos
|
||||
then builtins.fetchTarball "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
||||
else builtins.fetchTarball "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
|
||||
|
||||
# Compiled nixpkgs expression eg expressions from a nix channel
|
||||
nixpkgsVersion = builtins.concatStringsSep "." [
|
||||
|
@ -16,10 +25,10 @@ let
|
|||
|
||||
nixpkgsRevision = (builtins.readFile "${unstablePkgsExprs}/.git-revision");
|
||||
unstablePkgsForNixpkgs = nixpkgs: import unstablePkgsExprs {
|
||||
# localSystem -> pkgs.stdenv.hostPlatform or pkgs.stdenv.hostPlatform ???
|
||||
localSystem = nixpkgs.stdenv.hostPlatform;
|
||||
# crossSystem -> nixpkgs.stdenv.targetPlatform
|
||||
crossSystem = nixpkgs.stdenv.targetPlatform;
|
||||
# localSystem -> pkgs.stdenv.buildPlatform
|
||||
localSystem = nixpkgs.stdenv.buildPlatform;
|
||||
# crossSystem -> pkgs.stdenv.hostPlatform or pkgs.stdenv.targetPlatform ??
|
||||
crossSystem = nixpkgs.stdenv.hostPlatform;
|
||||
# config -> pkgs.config
|
||||
config = nixpkgs.config;
|
||||
# overlays -> partial of pkgs.overlays
|
||||
|
|
Loading…
Reference in a new issue