summaryrefslogtreecommitdiff
path: root/pkgs/simple-scalar/simplesim.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
committerAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
commitd7ac88762db111a7962c4e14b5f4e37ab85ccac7 (patch)
tree0c2c8c4383bef74215e3b7c48a2f6b0117f084bc /pkgs/simple-scalar/simplesim.nix
parent504589d1035f27b766bd33040b415b2725ece4ca (diff)
tree-wide: reformat using alejandra after enabling trivionomicon
Diffstat (limited to 'pkgs/simple-scalar/simplesim.nix')
-rw-r--r--pkgs/simple-scalar/simplesim.nix49
1 files changed, 33 insertions, 16 deletions
diff --git a/pkgs/simple-scalar/simplesim.nix b/pkgs/simple-scalar/simplesim.nix
index 3b73267..43bc656 100644
--- a/pkgs/simple-scalar/simplesim.nix
+++ b/pkgs/simple-scalar/simplesim.nix
@@ -1,19 +1,30 @@
-{ fetchFromGitHub, stdenv, isWattch ? false }:
+{
+ fetchFromGitHub,
+ stdenv,
+ isWattch ? false,
+}:
stdenv.mkDerivation {
- pname = if isWattch then "wattchg7" else "SimpleSim";
- version = if isWattch then "master-2014-03-20" else "2003-10-08"; # !!!
+ pname =
+ if isWattch
+ then "wattchg7"
+ else "SimpleSim";
+ version =
+ if isWattch
+ then "master-2014-03-20"
+ else "2003-10-08"; # !!!
src =
if isWattch
then
fetchFromGitHub
- {
- repo = "wattchg7";
- owner = "n-sreek";
+ {
+ repo = "wattchg7";
+ owner = "n-sreek";
- rev = "b1c2c1447584b7e850c6dc0743a2209c9d021a39";
- sha256 = "sha256-JMM2+6dgReSP3MKSC0ZOYt0Pcmef8DRzIkC26e4dk+Y=";
- } else
+ rev = "b1c2c1447584b7e850c6dc0743a2209c9d021a39";
+ sha256 = "sha256-JMM2+6dgReSP3MKSC0ZOYt0Pcmef8DRzIkC26e4dk+Y=";
+ }
+ else
fetchTarball {
name = "simplesim-3.0";
@@ -25,11 +36,17 @@ stdenv.mkDerivation {
make config-pisa
'';
- installPhase = ''
- mkdir -p $out/bin
- '' + (if isWattch then ''
- cp sim-outorder $out/bin/wattch-outorder
- '' else ''
- cp {sim-{outorder,cache,profile,bpred,eio,safe,fast},sysprobe} $out/bin/
- '');
+ installPhase =
+ ''
+ mkdir -p $out/bin
+ ''
+ + (
+ if isWattch
+ then ''
+ cp sim-outorder $out/bin/wattch-outorder
+ ''
+ else ''
+ cp {sim-{outorder,cache,profile,bpred,eio,safe,fast},sysprobe} $out/bin/
+ ''
+ );
}