From a1dca93dc80c36ac9f70d80315bd55d1b5c2e6c1 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Mon, 8 Nov 2021 02:38:22 +0100 Subject: [PATCH] explicitly declare nixpkgs --- flake.lock | 17 ++++++++++------- flake.nix | 7 +++++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index eb74317..1074df1 100644 --- a/flake.lock +++ b/flake.lock @@ -17,15 +17,18 @@ }, "nixpkgs": { "locked": { - "lastModified": 1636138231, - "narHash": "sha256-FZQ5wBcB9zI21uQMB/PaEQ/cLYk+Bwnig5cg1+2rPgg=", - "path": "/nix/store/c504m27i25igq2xzrl80pksycz3jkax1-source", - "rev": "5c02380de3951d0237807c16eb19873cb3c5f75d", - "type": "path" + "lastModified": 1636267212, + "narHash": "sha256-KDS173KqmqrYUPY9N4vf750GxIo+S6E0djyq2BsQm8s=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "c935f5e0add2cf0ae650d072c8357533e21b0c35", + "type": "github" }, "original": { - "id": "nixpkgs", - "type": "indirect" + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" } }, "root": { diff --git a/flake.nix b/flake.nix index 16956ea..c6bf35b 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,10 @@ nixConfig.bash-prompt = "\[\\e[1mstrm-dev\\e[0m:\\w\]$ "; - inputs.flake-utils.url = "github:numtide/flake-utils"; + inputs = { + nixpkgs.url = github:nixos/nixpkgs/nixos-unstable; + flake-utils.url = github:numtide/flake-utils; + }; outputs = { self, nixpkgs, flake-utils }: @@ -28,7 +31,7 @@ src = self; patchPhase = with pkgs; '' substituteInPlace strm \ - --replace mpv\ ${mpv}/bin/mpv\ + --replace mpv\ ${mpv}/bin/mpv\ ''; installPhase = '' install -m 755 -D strm $out/bin/strm