nix-shell configuration

earne/nixos
earnest ma 2021-08-23 21:28:28 -04:00
parent 990c0f2cbe
commit 1f5454956d
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
3 changed files with 22 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

View File

@ -1,3 +1,7 @@
earnest's personal clone of spotify-adblock (build helped with Nix) on a foreign system, lol
You should have [Spotify installed through the Debian package](https://www.spotify.com/ca-en/download/linux/) and probably `build-essential` and `git` installed as well.
# spotify-adblock # spotify-adblock
Spotify adblocker for Linux (macOS untested) that works by wrapping `getaddrinfo` and `cef_urlrequest_create`. It blocks requests to domains that are not on the allowlist, as well as URLs that are on the denylist. Spotify adblocker for Linux (macOS untested) that works by wrapping `getaddrinfo` and `cef_urlrequest_create`. It blocks requests to domains that are not on the allowlist, as well as URLs that are on the denylist.

17
shell.nix Normal file
View File

@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.gnumake
# Rust
pkgs.cargo
pkgs.rustc
pkgs.rustfmt
];
# Per https://nixos.wiki/wiki/Rust
# Certain Rust tools won't work without this
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
# See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}