explicitly declare nixpkgs

This commit is contained in:
Denis Lehmann 2021-11-08 02:38:22 +01:00
parent 9a113c5013
commit a1dca93dc8
2 changed files with 15 additions and 9 deletions

17
flake.lock generated
View file

@ -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": {

View file

@ -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