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.
28 lines
708 B
Nix
28 lines
708 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "openspin";
|
|
version = "unstable-2018-10-02";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "parallaxinc";
|
|
repo = "OpenSpin";
|
|
rev = "f3a587ed3e4f6a50b3c8d2022bbec5676afecedb";
|
|
sha256 = "1knkbzdanb60cwp7mggymkhd0167lh2sb1c00d1vhw7s0s1rj96n";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv build/openspin $out/bin/openspin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Compiler for SPIN/PASM languages for Parallax Propeller MCU";
|
|
mainProgram = "openspin";
|
|
homepage = "https://github.com/parallaxinc/OpenSpin";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.redvers ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|