Something went wrong. Try again.
Nice little directory browser :D
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ description = "utatane";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; lib = nixpkgs.lib; fetchDepsScript = pkgs.writeShellApplication { name = "fetch-deps"; runtimeInputs = [ pkgs.dotnet-sdk_10 pkgs.nuget-to-json ]; text = '' export TMPDIR TMPDIR=$(mktemp -d -t utatane-fetch-deps.XXXXXX) trap 'chmod -R +w "$TMPDIR" && rm -fr "$TMPDIR"' EXIT dotnet restore --packages "$TMPDIR/nuget" nuget-to-json "$TMPDIR/nuget" > "$TMPDIR/deps.json" # bug? present in plain nuget-to-json (but not in default.fetch-deps) # adds bad entry for pname Microsoft.AspNetCore.App.Internal.Assets # that breaks build; remove it jq 'del(.[]| select(.pname=="Microsoft.AspNetCore.App.Internal.Assets"))' "$TMPDIR/deps.json" > deps.json ''; }; in { packages.${system} = { default = pkgs.buildDotnetModule { pname = "Utatane"; version = "0.0.0+${self.dirtyShortRev or self.shortRev or "unknown"}"; src = ./.; projectFile = "./Utatane.csproj"; nugetDeps = ./deps.json; GIT_COMMIT = self.rev or (lib.removeSuffix "-dirty" self.dirtyRev); GIT_COMMIT_SHORT = self.shortRev or (lib.removeSuffix "-dirty" self.dirtyShortRev); dotnet-sdk = pkgs.dotnet-sdk_10; dotnet-runtime = pkgs.dotnet-sdk_10; nativeBuildInputs = [ # sync with tailwind version listed in Utatane.csproj !! pkgs.tailwindcss_4 pkgs.which ]; }; }; # default.fetch-deps wasn't seeing my other nuget source, but this script # helps instead! apps.${system} = { fetch-deps = { type = "app"; program = "${fetchDepsScript}/bin/fetch-deps"; }; }; };}