
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:
nix-build ci -A fmt.check
This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).
This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).
Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase
).
If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
clangStdenv,
|
|
fetchurl,
|
|
gnustep-back,
|
|
wrapGNUstepAppsHook,
|
|
}:
|
|
|
|
clangStdenv.mkDerivation rec {
|
|
pname = "pikopixel";
|
|
version = "1.0-b10";
|
|
|
|
src = fetchurl {
|
|
url = "https://twilightedge.com/downloads/PikoPixel.Sources.${version}.tar.gz";
|
|
sha256 = "1b27npgsan2nx1p581b9q2krx4506yyd6s34r4sf1r9x9adshm77";
|
|
};
|
|
|
|
sourceRoot = "PikoPixel.Sources.${version}/PikoPixel";
|
|
|
|
nativeBuildInputs = [
|
|
wrapGNUstepAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
gnustep-back
|
|
];
|
|
|
|
# Fix the Exec and Icon paths in the .desktop file, and save the file in the
|
|
# correct place.
|
|
# postInstall gets redefined in gnustep.make's builder.sh, so we use preFixup
|
|
preFixup = ''
|
|
mkdir -p $out/share/applications
|
|
sed \
|
|
-e "s@^Exec=.*\$@Exec=$out/bin/PikoPixel %F@" \
|
|
-e "s@^Icon=.*/local@Icon=$out@" \
|
|
PikoPixel.app/Resources/PikoPixel.desktop > $out/share/applications/PikoPixel.desktop
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Application for drawing and editing pixel-art images";
|
|
mainProgram = "PikoPixel";
|
|
homepage = "https://twilightedge.com/mac/pikopixel/";
|
|
downloadPage = "https://twilightedge.com/mac/pikopixel/";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|