aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-24 14:22:23 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-27 11:26:19 +0100
commitb0d2cf8ac06a617ac4c6c6c8126843af6d0a9366 (patch)
treee541e1048b6c2031d11ca3af3481a591f0ea52a1
parentc86e97768f1d9a79f6599699532abf62975f34c8 (diff)
downloadNix-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.nix11
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 @@
1with import <nixpkgs> {}; 1with 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}) {};
2let 8let
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 {