nix-files/pkgs/additional/fractal-nixified/default.nix

47 lines
1.6 KiB
Nix

# Cargo.nix and crate-hashes.json were created with:
# - `nix run '.#crate2nix' -- generate -f https://gitlab.gnome.org/GNOME/fractal`
# - `sed -i 's/target."curve25519_dalek_backend"/target."curve25519_dalek_backend" or ""/g' Cargo.nix`
# - in Cargo.nix change the fractal source from `src = ../../../../../ref/repos/gnome/fractal to
# src = pkgs.fetchFromGitLab {
# domain = "gitlab.gnome.org";
# owner = "GNOME";
# repo = "fractal";
# rev = "350a65cb0a221c70fc3e4746898036a345ab9ed8";
# hash = "sha256-z6uURqMG5pT8rXZCv5IzTjXxtt/f4KUeCDSgk90aWdo=";
# };
{ pkgs }:
let
cargoNix = import ./Cargo.nix {
inherit pkgs;
release = false;
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
fractal = attrs: attrs // {
src = pkgs.fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "fractal";
rev = "350a65cb0a221c70fc3e4746898036a345ab9ed8";
hash = "sha256-z6uURqMG5pT8rXZCv5IzTjXxtt/f4KUeCDSgk90aWdo=";
};
};
# js_int = attrs: attrs // {
# features = attrs.features ++ [ "serde" "std" ];
# };
# serde_derive = attrs: attrs // {
# crateName = "serde_derive-x86_64-unknown-linux-gnu";
# sha256 = "";
# };
};
# defaultCrateOverrides = pkgs.defaultCrateOverrides // {
# js_int = attrs: attrs // {
# features = attrs.features ++ [ "serde" ];
# };
# serde = attrs: attrs // {
# features = attrs.features ++ [ "derive" "serde_derive" ];
# };
# };
};
in
cargoNix.workspaceMembers.fractal.build