Change to raw fetchGit for dev purposes
This commit is contained in:
parent
dd43867391
commit
1b9b93bd5b
1 changed files with 5 additions and 7 deletions
12
default.nix
12
default.nix
|
@ -1,18 +1,16 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
fetchFromGitHub,
|
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage {
|
||||||
pname = "compiler-course";
|
pname = "compiler-course";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
# You would not use this in an actual nix package!
|
||||||
owner = "VSinerva";
|
src = builtins.fetchGit {
|
||||||
repo = pname;
|
url = "https://gitea.vsinerva.fi/VSinerva/compiler-course.git";
|
||||||
|
name = "compiler-course-src";
|
||||||
ref = "main";
|
ref = "main";
|
||||||
hash = lib.fakeHash; # Use this to get the new hash
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
|
Reference in a new issue