From 1b9b93bd5bbb7bc97de9d3be95687df3b00e7eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Wed, 15 Jan 2025 15:42:30 +0200 Subject: [PATCH] Change to raw fetchGit for dev purposes --- default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/default.nix b/default.nix index 33b6c26..38b19e0 100644 --- a/default.nix +++ b/default.nix @@ -1,18 +1,16 @@ { - lib, - fetchFromGitHub, rustPlatform, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage { pname = "compiler-course"; version = "0.1.0"; - src = fetchFromGitHub { - owner = "VSinerva"; - repo = pname; + # You would not use this in an actual nix package! + src = builtins.fetchGit { + url = "https://gitea.vsinerva.fi/VSinerva/compiler-course.git"; + name = "compiler-course-src"; ref = "main"; - hash = lib.fakeHash; # Use this to get the new hash }; cargoLock = {