mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
Merge pull request #106102 from fgaz/pikopixel/init
pikopixel: init at 1.0-b9e
This commit is contained in:
commit
550ff33d62
48
pkgs/applications/graphics/pikopixel/default.nix
Normal file
48
pkgs/applications/graphics/pikopixel/default.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{ lib
|
||||||
|
, fetchurl
|
||||||
|
, gnustep
|
||||||
|
, gcc
|
||||||
|
, llvmPackages_9
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
# Earlier llvm than 9 segfaults
|
||||||
|
gnustep' = gnustep.override { llvmPackages = llvmPackages_9; };
|
||||||
|
|
||||||
|
in gnustep'.gsmakeDerivation rec {
|
||||||
|
pname = "pikopixel";
|
||||||
|
version = "1.0-b9e";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://twilightedge.com/downloads/PikoPixel.Sources.${version}.tar.gz";
|
||||||
|
sha256 = "1gmgb5ch7s6fwvg85l6pl6fsx0maqwd8yvg7sz3r9lj32g2pz5wn";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourceRoot = "PikoPixel.Sources.${version}/PikoPixel";
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gnustep'.base
|
||||||
|
gnustep'.gui
|
||||||
|
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";
|
||||||
|
homepage = "http://twilightedge.com/mac/pikopixel/";
|
||||||
|
downloadPage = "http://twilightedge.com/mac/pikopixel/";
|
||||||
|
license = licenses.agpl3;
|
||||||
|
maintainers = with maintainers; [ fgaz ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -1,21 +1,22 @@
|
|||||||
{ pkgs, newScope, llvmPackages_6 }:
|
{ newScope
|
||||||
|
, llvmPackages
|
||||||
|
, giflib_4_1
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
callPackage = newScope self;
|
callPackage = newScope self;
|
||||||
|
|
||||||
self = rec {
|
self = rec {
|
||||||
stdenv = pkgs.clangStdenv;
|
stdenv = llvmPackages.stdenv;
|
||||||
|
|
||||||
gsmakeDerivation = callPackage ./make/gsmakeDerivation.nix {};
|
gsmakeDerivation = callPackage ./make/gsmakeDerivation.nix {};
|
||||||
gorm = callPackage ./gorm {};
|
gorm = callPackage ./gorm {};
|
||||||
projectcenter = callPackage ./projectcenter {};
|
projectcenter = callPackage ./projectcenter {};
|
||||||
system_preferences = callPackage ./systempreferences {};
|
system_preferences = callPackage ./systempreferences {};
|
||||||
libobjc = callPackage ./libobjc2 {
|
libobjc = callPackage ./libobjc2 {};
|
||||||
stdenv = if stdenv.cc.isClang then llvmPackages_6.stdenv else stdenv;
|
|
||||||
};
|
|
||||||
make = callPackage ./make {};
|
make = callPackage ./make {};
|
||||||
back = callPackage ./back {};
|
back = callPackage ./back {};
|
||||||
base = callPackage ./base { giflib = pkgs.giflib_4_1; };
|
base = callPackage ./base { giflib = giflib_4_1; };
|
||||||
gui = callPackage ./gui {};
|
gui = callPackage ./gui {};
|
||||||
gworkspace = callPackage ./gworkspace {};
|
gworkspace = callPackage ./gworkspace {};
|
||||||
};
|
};
|
||||||
|
@ -24081,6 +24081,8 @@ in
|
|||||||
|
|
||||||
purple-facebook = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-facebook { };
|
purple-facebook = callPackage ../applications/networking/instant-messengers/pidgin-plugins/purple-facebook { };
|
||||||
|
|
||||||
|
pikopixel = callPackage ../applications/graphics/pikopixel { };
|
||||||
|
|
||||||
pithos = callPackage ../applications/audio/pithos {
|
pithos = callPackage ../applications/audio/pithos {
|
||||||
pythonPackages = python3Packages;
|
pythonPackages = python3Packages;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user