fix nix flakes reference

This commit is contained in:
Cassandra Comar 2022-10-07 19:44:43 -04:00
parent 6c8dd7ad28
commit 44c2fa0300
No known key found for this signature in database
GPG key ID: 39D4EC33EF5C3234

View file

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> { } }:
with pkgs; with pkgs;
stdenv.mkDerivation { stdenv.mkDerivation {
@ -7,7 +7,7 @@ stdenv.mkDerivation {
src = ./.; src = ./.;
postPatch = '' postPatch = ''
sed -i "2iNIX_BIN_PREFIX=${nixFlakes}/bin/" direnvrc sed -i "2iNIX_BIN_PREFIX=${nixVersions.stable}/bin/" direnvrc
substituteInPlace direnvrc \ substituteInPlace direnvrc \
--replace "grep" "${gnugrep}/bin/grep" --replace "grep" "${gnugrep}/bin/grep"
''; '';