1
0
Fork 0

Change to raw fetchGit for dev purposes

This commit is contained in:
Vili Sinervä 2025-01-15 15:42:30 +02:00
parent dd43867391
commit 1b9b93bd5b
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -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 = {