move nixpkgs-pinned.nix

This commit is contained in:
Jonas Nick 2019-01-26 18:12:08 +00:00
parent 6763459b62
commit 1d020a7ca8
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
3 changed files with 15 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
nixpkgs-pinned = import ../nixpkgs-pinned.nix; nixpkgs-pinned = import ../pkgs/nixpkgs-pinned.nix;
nixpkgs-unstable = import nixpkgs-pinned.nixpkgs-unstable { }; nixpkgs-unstable = import nixpkgs-pinned.nixpkgs-unstable { };
# Custom packages # Custom packages

13
pkgs/nixpkgs-pinned.nix Normal file
View File

@ -0,0 +1,13 @@
{
nixpkgs = builtins.fetchGit {
url = "https://github.com/nixos/nixpkgs-channels";
ref = "nixos-18.09";
rev = "001b34abcb4d7f5cade707f7fd74fa27cbabb80b";
};
nixpkgs-unstable = builtins.fetchGit {
url = "https://github.com/nixos/nixpkgs-channels";
ref = "nixpkgs-unstable";
rev = "8349329617ffa70164c5a16b049c2ef5f59416bd";
};
}

View File

@ -1,5 +1,5 @@
let let
nixpkgs = (import ./nixpkgs-pinned.nix).nixpkgs; nixpkgs = (import ./pkgs/nixpkgs-pinned.nix).nixpkgs;
in in
with import nixpkgs { }; with import nixpkgs { };