added dotnet bc we bad

This commit is contained in:
2025-05-20 06:53:38 +03:00
parent 65c87e3f3e
commit c2d8d76531
3 changed files with 32 additions and 24 deletions

11
dotnet.nix Normal file
View File

@@ -0,0 +1,11 @@
let
# Pinned nixpkgs, deterministic. Last updated: 2/12/21.
#pkgs = import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/a58a0b5098f0c2a389ee70eb69422a052982d990.tar.gz")) {};
# Rolling updates, not deterministic.
pkgs = import (fetchTarball "channel:nixpkgs-unstable") { };
in pkgs.mkShell {
buildInputs = [ pkgs.dotnet-sdk ];
shellHook = ''
exec zsh
'';
}

View File

@@ -1,17 +1,15 @@
let let
moz_overlay = moz_overlay = import (builtins.fetchTarball
import (builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz");
"https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz"); nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
nixpkgs = import <nixpkgs> {overlays = [moz_overlay];}; in with nixpkgs;
in stdenv.mkDerivation {
with nixpkgs; name = "moz_overlay_shell";
stdenv.mkDerivation { buildInputs = [
name = "moz_overlay_shell"; # to use the latest nightly:
buildInputs = [ nixpkgs.latest.rustChannels.nightly.rust
# to use the latest nightly: ];
nixpkgs.latest.rustChannels.nightly.rust shellHook = ''
]; exec zsh
shellHook = '' '';
exec zsh }
'';
}

View File

@@ -2,11 +2,10 @@ let
# Pinned nixpkgs, deterministic. Last updated: 2/12/21. # Pinned nixpkgs, deterministic. Last updated: 2/12/21.
#pkgs = import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/a58a0b5098f0c2a389ee70eb69422a052982d990.tar.gz")) {}; #pkgs = import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/a58a0b5098f0c2a389ee70eb69422a052982d990.tar.gz")) {};
# Rolling updates, not deterministic. # Rolling updates, not deterministic.
pkgs = import (fetchTarball "channel:nixpkgs-unstable") {}; pkgs = import (fetchTarball "channel:nixpkgs-unstable") { };
in in pkgs.mkShell {
pkgs.mkShell { buildInputs = [ pkgs.cargo pkgs.rustc pkgs.zsh pkgs.bacon ];
buildInputs = [pkgs.cargo pkgs.rustc pkgs.zsh pkgs.bacon]; shellHook = ''
shellHook = '' exec zsh
exec zsh '';
''; }
}