mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib, stdenv, fetchgit
|
|
, flex, bison, fig2dev, imagemagick, netpbm, gtk2
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "fped";
|
|
version = "unstable-2017-05-11";
|
|
|
|
src = fetchgit {
|
|
url = "git://projects.qi-hardware.com/fped.git";
|
|
rev = "fa98e58157b6f68396d302c32421e882ac87f45b";
|
|
sha256 = "0xv364a00zwxhd9kg1z9sch5y0cxnrhk546asspyb9bh58sdzfy7";
|
|
};
|
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
# ld: postscript.o:postscript.h:29: multiple definition of
|
|
# `postscript_params'; fped.o:postscript.h:29: first defined here
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
# This uses '/bin/bash', '/usr/local' and 'lex' by default
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"LEX=flex"
|
|
"RGBDEF=${netpbm.out}/share/netpbm/misc/rgb.txt"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
flex
|
|
bison
|
|
pkg-config
|
|
imagemagick
|
|
fig2dev
|
|
netpbm
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk2
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Editor that allows the interactive creation of footprints electronic components";
|
|
mainProgram = "fped";
|
|
homepage = "http://projects.qi-hardware.com/index.php/p/fped/";
|
|
license = licenses.gpl2;
|
|
maintainers = [];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|