diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-24 14:22:23 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-27 11:26:19 +0100 |
commit | b0d2cf8ac06a617ac4c6c6c8126843af6d0a9366 (patch) | |
tree | e541e1048b6c2031d11ca3af3481a591f0ea52a1 | |
parent | c86e97768f1d9a79f6599699532abf62975f34c8 (diff) | |
download | Nix-b0d2cf8ac06a617ac4c6c6c8126843af6d0a9366.tar.gz Nix-b0d2cf8ac06a617ac4c6c6c8126843af6d0a9366.tar.zst Nix-b0d2cf8ac06a617ac4c6c6c8126843af6d0a9366.zip |
Use tagged nixpkgs instead of last unstable version to control upgrades
-rw-r--r-- | default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/default.nix b/default.nix index 2f10ee8..3772d44 100644 --- a/default.nix +++ b/default.nix | |||
@@ -1,5 +1,12 @@ | |||
1 | with import <nixpkgs> {}; | 1 | with import (builtins.fetchTarball { |
2 | # FIXME: upgrade to nixpkgs 19 when stable and stick to stable | ||
3 | # versions | ||
4 | name = "nixos-unstable-2018-12-08"; | ||
5 | url = https://github.com/nixos/nixpkgs/archive/61c3169a0e17d789c566d5b241bfe309ce4a6275.tar.gz; | ||
6 | sha256 = "0qbycg7wkb71v20rchlkafrjfpbk2fnlvvbh3ai9pyfisci5wxvq"; | ||
7 | }) {}; | ||
2 | let | 8 | let |
9 | stable_nixpkgs = import <nixpkgs> {}; | ||
3 | mypkgs = {}; | 10 | mypkgs = {}; |
4 | postHook = '' | 11 | postHook = '' |
5 | header() { | 12 | header() { |
@@ -101,7 +108,7 @@ let | |||
101 | }; | 108 | }; |
102 | }; | 109 | }; |
103 | 110 | ||
104 | buildPerlPackage = callPackage <nixpkgs/pkgs/development/perl-modules/generic> { }; | 111 | buildPerlPackage = perlPackages.buildPerlPackage; |
105 | mypkgs.note = buildPerlPackage rec { | 112 | mypkgs.note = buildPerlPackage rec { |
106 | name = "note-1.3.26"; | 113 | name = "note-1.3.26"; |
107 | src = fetchurl { | 114 | src = fetchurl { |