diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-03-25 14:14:55 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-03-25 14:14:55 +0100 |
commit | 1568b6858d75793279d5bf3565345a33fb95a973 (patch) | |
tree | 896cc4e96774bdf57c9909008fcab5ce2fba9cfa | |
parent | b5e2ff4bed63ef48f0f6ea9844b03bd63724e63e (diff) | |
download | nixpkgs-1568b6858d75793279d5bf3565345a33fb95a973.tar nixpkgs-1568b6858d75793279d5bf3565345a33fb95a973.tar.gz nixpkgs-1568b6858d75793279d5bf3565345a33fb95a973.tar.bz2 nixpkgs-1568b6858d75793279d5bf3565345a33fb95a973.tar.lz nixpkgs-1568b6858d75793279d5bf3565345a33fb95a973.tar.xz nixpkgs-1568b6858d75793279d5bf3565345a33fb95a973.tar.zst nixpkgs-1568b6858d75793279d5bf3565345a33fb95a973.zip |
Use programs.sqlite from the NixOS channel
-rw-r--r-- | modules/programs/bash/command-not-found.nix | 2 | ||||
-rw-r--r-- | modules/programs/bash/command-not-found.pl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/programs/bash/command-not-found.nix b/modules/programs/bash/command-not-found.nix index 1aecd9051e5..4eb11d3a172 100644 --- a/modules/programs/bash/command-not-found.nix +++ b/modules/programs/bash/command-not-found.nix @@ -28,7 +28,7 @@ in # This function is called whenever a command is not found. command_not_found_handle() { local p=/run/current-system/sw/bin/command-not-found - if [ -x $p -a -f /var/lib/nixos/programs.sqlite ]; then + if [ -x $p -a -f /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite ]; then # Run the helper program. $p "$1" # Retry the command if we just installed it. diff --git a/modules/programs/bash/command-not-found.pl b/modules/programs/bash/command-not-found.pl index b497b05d33e..916649059d3 100644 --- a/modules/programs/bash/command-not-found.pl +++ b/modules/programs/bash/command-not-found.pl @@ -7,7 +7,7 @@ use Config; my $program = $ARGV[0]; -my $dbPath = "/var/lib/nixos/programs.sqlite"; +my $dbPath = "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite"; my $dbh = DBI->connect("dbi:SQLite:dbname=$dbPath", "", "") or die "cannot open database `$dbPath'"; |