-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c5fae8
commit bd0a09b
Showing
8 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if has nix; then | ||
use flake . | ||
fi | ||
|
||
# vim: ft=sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Nix generated | ||
/.pre-commit-config.yaml | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `sandbox` | ||
|
||
A description fitting in one single line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
description = "Sandbox template"; | ||
|
||
outputs = { | ||
self, | ||
nixpkgs, | ||
}: let | ||
supportedSystems = [ | ||
"x86_64-linux" | ||
]; | ||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | ||
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;}); | ||
in { | ||
devShells = forAllSystems (system: let | ||
pkgs = nixpkgsFor.${system}; | ||
in { | ||
default = pkgs.mkShell { | ||
name = "sandbox-nix-shell"; | ||
buildInputs = with pkgs; [ | ||
just | ||
]; | ||
}; | ||
}); | ||
}; | ||
|
||
inputs.nixpkgs.url = "github:NixOS/nixpkgs"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if has nix; then | ||
use nix | ||
fi | ||
|
||
# vim: ft=sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
pkgs ? ( | ||
let | ||
inherit (builtins) fetchTree fromJSON readFile; | ||
inherit ((fromJSON (readFile ../flake.lock)).nodes) nixpkgs; | ||
in | ||
import (fetchTree nixpkgs.locked) {} | ||
), | ||
}: | ||
pkgs.mkShell { | ||
packages = with pkgs; [ | ||
hello | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters