explicitly declare nixpkgs
This commit is contained in:
parent
9a113c5013
commit
a1dca93dc8
2 changed files with 15 additions and 9 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -17,15 +17,18 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1636138231,
|
"lastModified": 1636267212,
|
||||||
"narHash": "sha256-FZQ5wBcB9zI21uQMB/PaEQ/cLYk+Bwnig5cg1+2rPgg=",
|
"narHash": "sha256-KDS173KqmqrYUPY9N4vf750GxIo+S6E0djyq2BsQm8s=",
|
||||||
"path": "/nix/store/c504m27i25igq2xzrl80pksycz3jkax1-source",
|
"owner": "nixos",
|
||||||
"rev": "5c02380de3951d0237807c16eb19873cb3c5f75d",
|
"repo": "nixpkgs",
|
||||||
"type": "path"
|
"rev": "c935f5e0add2cf0ae650d072c8357533e21b0c35",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"owner": "nixos",
|
||||||
"type": "indirect"
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@
|
||||||
|
|
||||||
nixConfig.bash-prompt = "\[\\e[1mstrm-dev\\e[0m:\\w\]$ ";
|
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 }:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
|
||||||
|
|
@ -28,7 +31,7 @@
|
||||||
src = self;
|
src = self;
|
||||||
patchPhase = with pkgs; ''
|
patchPhase = with pkgs; ''
|
||||||
substituteInPlace strm \
|
substituteInPlace strm \
|
||||||
--replace mpv\ ${mpv}/bin/mpv\
|
--replace mpv\ ${mpv}/bin/mpv\
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -m 755 -D strm $out/bin/strm
|
install -m 755 -D strm $out/bin/strm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue