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.
30 lines
869 B
Nix
30 lines
869 B
Nix
{ lib, stdenv, fetchurl, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "archimedes";
|
|
version = "2.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/archimedes/archimedes-${version}.tar.gz";
|
|
sha256 = "0jfpnd3pns5wxcxbiw49v5sgpmm5b4v8s4q1a5292hxxk2hzmb3z";
|
|
};
|
|
|
|
patches = [
|
|
# Pull patch pending upstream inclusion to support c99 toolchains:
|
|
# https://savannah.gnu.org/bugs/index.php?62703
|
|
(fetchpatch {
|
|
name = "c99.patch";
|
|
url = "https://savannah.gnu.org/bugs/download.php?file_id=53393";
|
|
sha256 = "1xmy1w4ln1gynldk3srdi2h0fxpx465dsa1yxc3rzrrjpxh6087f";
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
description = "GNU package for semiconductor device simulations";
|
|
mainProgram = "archimedes";
|
|
homepage = "https://www.gnu.org/software/archimedes";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|