summary refs log tree commit diff
diff options
context:
space:
mode:
authorWinter <winter@winter.cafe>2022-07-23 22:59:54 -0400
committerGitHub <noreply@github.com>2022-07-23 22:59:54 -0400
commiteb54e6e86ac996010e9b65ffcc804ff35cd65c17 (patch)
treed8d30fc7a3a9515e469631bac78f18033d734de1
parent56ab51864e9e85b445fe96103cef2f5029dabe88 (diff)
parent60a93661cab3fc9632ad57a464511a68063a2606 (diff)
downloadnixpkgs-eb54e6e86ac996010e9b65ffcc804ff35cd65c17.tar
nixpkgs-eb54e6e86ac996010e9b65ffcc804ff35cd65c17.tar.gz
nixpkgs-eb54e6e86ac996010e9b65ffcc804ff35cd65c17.tar.bz2
nixpkgs-eb54e6e86ac996010e9b65ffcc804ff35cd65c17.tar.lz
nixpkgs-eb54e6e86ac996010e9b65ffcc804ff35cd65c17.tar.xz
nixpkgs-eb54e6e86ac996010e9b65ffcc804ff35cd65c17.tar.zst
nixpkgs-eb54e6e86ac996010e9b65ffcc804ff35cd65c17.zip
Merge pull request #182603 from Craftzman7/pkg/railway
railway: init at 1.8.3
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/development/tools/railway/default.nix28
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 36 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 8b101926d85..11891e5b8f3 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -2649,6 +2649,12 @@
       fingerprint = "8026 D24A A966 BF9C D3CD  CB3C 08FB 2BFC 470E 75B4";
     }];
   };
+  Crafter = {
+    email = "crafter@crafter.rocks";
+    github = "Craftzman7";
+    githubId = 70068692;
+    name = "Crafter";
+  };
   craigem = {
     email = "craige@mcwhirter.io";
     github = "craigem";
diff --git a/pkgs/development/tools/railway/default.nix b/pkgs/development/tools/railway/default.nix
new file mode 100644
index 00000000000..e93cf7b57dc
--- /dev/null
+++ b/pkgs/development/tools/railway/default.nix
@@ -0,0 +1,28 @@
+{ buildGoModule, fetchFromGitHub, lib }:
+
+buildGoModule rec {
+  pname = "railway";
+  version = "1.8.3";
+
+  src = fetchFromGitHub {
+    owner = "railwayapp";
+    repo = "cli";
+    rev = "v${version}";
+    sha256 = "sha256-PAKg/8Ljcrz92M4sdKXZBe9Qa0NYwWnghzjxsCO8nhU=";
+  };
+
+  ldflags = [ "-s" "-w" ];
+
+  vendorSha256 = "sha256-nLuomuAScodgLUKzMTiygtFBnNHrqAojOySZgKLVGJY=";
+
+  postInstall = ''
+    mv $out/bin/cli $out/bin/railway
+  '';
+
+  meta = with lib; {
+    description = "Railway CLI";
+    homepage = "https://railway.app";
+    license = licenses.mit;
+    maintainers = with maintainers; [ Crafter ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9c00b8f4532..ebe82b7dd8d 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -10013,6 +10013,8 @@ with pkgs;
 
   quilt = callPackage ../development/tools/quilt { };
 
+  railway = callPackage ../development/tools/railway { };
+
   quota = if stdenv.isLinux then linuxquota else unixtools.quota;
 
   qvge = libsForQt5.callPackage ../applications/graphics/qvge { };