swiftformat: Remove
Upstream `nixpkgs` now builds `swiftformat` via SwiftPM.
This commit is contained in:
parent
eaac41f587
commit
bb0574d97e
3 changed files with 6 additions and 38 deletions
12
flake.lock
generated
12
flake.lock
generated
|
@ -92,11 +92,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749999552,
|
"lastModified": 1750127463,
|
||||||
"narHash": "sha256-iCUuEq9qXUh8L1c2bRyCayAqfuUEs9nGAUlXv2RcoF8=",
|
"narHash": "sha256-K2xFtlD3PcKAZriOE3LaBLYmVfGQu+rIF4Jr1RFYR0Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "04672588c61aebd18c0d0ada66dd7bb4d8edab0d",
|
"rev": "28eef8722d1af18ca13e687dbf485e1c653a0402",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -142,11 +142,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749794982,
|
"lastModified": 1750134718,
|
||||||
"narHash": "sha256-Kh9K4taXbVuaLC0IL+9HcfvxsSUx8dPB5s5weJcc9pc=",
|
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ee930f9755f58096ac6e8ca94a1887e0534e2d81",
|
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -2,5 +2,4 @@
|
||||||
ipsw = pkgs.callPackage ./ipsw.nix { };
|
ipsw = pkgs.callPackage ./ipsw.nix { };
|
||||||
monaco-powerline = pkgs.callPackage ./monaco-powerline/default.nix { };
|
monaco-powerline = pkgs.callPackage ./monaco-powerline/default.nix { };
|
||||||
telnet = pkgs.callPackage ./telnet.nix { };
|
telnet = pkgs.callPackage ./telnet.nix { };
|
||||||
swiftformat = pkgs.callPackage ./swiftformat.nix { };
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
{ clangStdenv, lib, fetchFromGitHub, swift, swiftpm, swiftPackages }:
|
|
||||||
|
|
||||||
swiftPackages.stdenv.mkDerivation rec {
|
|
||||||
pname = "swiftformat";
|
|
||||||
version = "0.56.4";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "nicklockwood";
|
|
||||||
repo = "SwiftFormat";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "sha256-WnBQTpbz9tcnbvmtWpZ9esirWdQKJOpVmH8zk97OuFE=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ swift swiftpm ];
|
|
||||||
buildInputs = [ swiftPackages.Dispatch swiftPackages.Foundation ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
binPath="$(swiftpmBinPath)"
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp $binPath/swiftformat $out/bin/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A code formatting and linting tool for Swift";
|
|
||||||
homepage = "https://github.com/nicklockwood/SwiftFormat";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ maintainers.bdesham ];
|
|
||||||
platforms = with lib.platforms; linux ++ darwin;
|
|
||||||
hydraPlatforms = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue