1
Fork 0

Get build to work... I guess

This commit is contained in:
prescientmoon 2025-02-11 21:38:56 +01:00
parent 8d3c26b036
commit 2670e35fdd
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 13 additions and 2 deletions

View file

@ -2,6 +2,7 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
shimmeringdarkness.url = "git+ssh://forgejo@ssh.git.moonythm.dev/prescientmoon/shimmeringdarkness.git";
shimmeringdarkness.flake = false;
};

View file

@ -1,4 +1,5 @@
{
lib,
pkg-config,
makeWrapper,
@ -15,7 +16,15 @@
rustPlatform.buildRustPackage rec {
pname = "shimmeringmoon";
version = "unstable-2025-02-11";
src = ../.;
src = lib.fileset.toSource {
root = ../.;
fileset = lib.fileset.unions [
../Cargo.lock
../Cargo.toml
../migrations
../src
];
};
SHIMMERING_FONT_DIR = shimmering-fonts;
SHIMMERING_CC_DIR = cc-data;
@ -33,6 +42,7 @@ rustPlatform.buildRustPackage rec {
openssl
];
useFetchCargoVendor = true;
cargoLock = {
lockFile = ../Cargo.lock;
outputHashes = {
@ -45,7 +55,7 @@ rustPlatform.buildRustPackage rec {
# Disable all tests
doCheck = false;
postBuild = ''
postFixup = ''
for file in $out/bin/*; do
wrapProgram $file \
--set SHIMMERING_CC_DIR "${cc-data}" \