Skip to content

Commit b8f42e2

Browse files
authored
Merge pull request #128 from lovesegfault/no-naersk
flake: replace naersk with buildRustPackage
2 parents e5546f9 + dc6e17b commit b8f42e2

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

flake.lock

Lines changed: 0 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,17 @@
88

99
inputs = {
1010
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
11-
naersk = {
12-
url = "github:nmattia/naersk/master";
13-
inputs.nixpkgs.follows = "nixpkgs";
14-
};
1511
utils.url = "github:numtide/flake-utils";
1612
flake-compat = {
1713
url = "github:edolstra/flake-compat";
1814
flake = false;
1915
};
2016
};
2117

22-
outputs = { self, nixpkgs, utils, naersk, ... }:
18+
outputs = { self, nixpkgs, utils, ... }:
2319
{
2420
overlay = final: prev:
2521
let
26-
naersk-lib = final.callPackage naersk { };
2722
system = final.system;
2823
isDarwin = final.lib.strings.hasSuffix "-darwin" system;
2924
darwinOptions = final.lib.optionalAttrs isDarwin {
@@ -35,8 +30,13 @@
3530
{
3631
deploy-rs = {
3732

38-
deploy-rs = naersk-lib.buildPackage (darwinOptions // {
39-
root = ./.;
33+
deploy-rs = final.rustPlatform.buildRustPackage (darwinOptions // {
34+
pname = "deploy-rs";
35+
version = "0.1.0";
36+
37+
src = ./.;
38+
39+
cargoLock.lockFile = ./Cargo.lock;
4040
}) // { meta.description = "A Simple multi-profile Nix-flake deploy tool"; };
4141

4242
lib = rec {

0 commit comments

Comments
 (0)