-
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.
🎨 change all default.nix to flake.nix
- Loading branch information
Showing
24 changed files
with
349 additions
and
170 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
result | ||
result | ||
**/flake.lock | ||
!/flake.lock |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
{ | ||
inputs = {}; | ||
|
||
outputs = {...}: { | ||
drv = {pkgs, ...}: let | ||
myBrainfuck = pkgs.bfc; | ||
myClang = pkgs.clang; | ||
in | ||
pkgs.writeShellScriptBin "bfc" "PATH=${myClang}/bin:$PATH exec ${myBrainfuck}/bin/bfc $@"; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
{ | ||
inputs = { | ||
myBrainfuck = { | ||
url = "./brainfuck"; | ||
}; | ||
myGolang = { | ||
url = "./golang"; | ||
}; | ||
}; | ||
|
||
outputs = { | ||
myGolang, | ||
myBrainfuck, | ||
... | ||
}: { | ||
all = {pkgs, ...}: [ | ||
(myGolang.drv {inherit pkgs;}) | ||
(myBrainfuck.drv {inherit pkgs;}) | ||
]; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,68 @@ | ||
{ | ||
inputs = { | ||
gods = { | ||
url = "github:emirpasic/gods/v1.18.1"; | ||
flake = false; | ||
}; | ||
gonum = { | ||
url = "github:gonum/gonum/v0.15.1"; | ||
flake = false; | ||
}; | ||
gostl = { | ||
url = "github:liyue201/gostl/v1.2.0"; | ||
flake = false; | ||
}; | ||
golang-org-exp = { | ||
# No version tag available in the repository. (v0.0.0-20241009180824-f66d83c29e7c) | ||
url = "github:golang/exp/225e2abe05e664228e7afb6bf5b97a25d56ba575"; | ||
flake = false; | ||
}; | ||
}; | ||
|
||
outputs = { | ||
self, | ||
gods, | ||
gonum, | ||
gostl, | ||
golang-org-exp, | ||
... | ||
}: { | ||
drv = {pkgs, ...}: let | ||
compiler-drv = let | ||
goCompiler = pkgs.go; | ||
in | ||
pkgs.writeShellScriptBin "go" "exec ${goCompiler}/share/go/bin/go $@"; | ||
mod-drv = pkgs.stdenv.mkDerivation { | ||
name = "go.mod template"; | ||
src = ./.; | ||
phases = "installPhase"; | ||
installPhase = '' | ||
mkdir -p $out/misc/go | ||
touch $out/misc/go/go.mod | ||
echo 'module gomod-template | ||
go 1.23.2 | ||
require ( | ||
github.com/emirpasic/gods v1.18.1 | ||
github.com/gonum/gonum v0.15.1 | ||
github.com/liyue201/gostl v1.2.0 | ||
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c | ||
) | ||
replace ( | ||
github.com/emirpasic/gods => ${gods} | ||
github.com/gonum/gonum => ${gonum} | ||
github.com/liyue201/gostl => ${gostl} | ||
golang.org/x/exp => ${golang-org-exp} | ||
) | ||
' > $out/misc/go/go.mod | ||
''; | ||
}; | ||
in | ||
pkgs.symlinkJoin { | ||
name = "golang"; | ||
paths = [compiler-drv mod-drv]; | ||
}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.